Skip to content

Commit

Permalink
grpc default config fix
Browse files Browse the repository at this point in the history
grpc default config fix
  • Loading branch information
oke11o committed Jul 13, 2023
1 parent 0e8e306 commit dfac600
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions components/guns/grpc/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ type Gun struct {
answLog *zap.Logger
}

func DefaultGunConfig() GunConfig {
return GunConfig{
Target: "default target",
AnswLog: AnswLogConfig{
Enabled: false,
Path: "answ.log",
Filter: "all",
},
func DefaultGunConfig() func() GunConfig {
return func() GunConfig {
return GunConfig{
Target: "default target",
AnswLog: AnswLogConfig{
Enabled: false,
Path: "answ.log",
Filter: "all",
},
}
}
}

Expand Down

0 comments on commit dfac600

Please sign in to comment.