diff --git a/cli/cli.go b/cli/cli.go index b7e6e4a23..ea319d4b8 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -24,7 +24,7 @@ import ( "go.uber.org/zap/zapcore" ) -const Version = "0.5.9" +const Version = "0.5.10" const defaultConfigFile = "load" const stdinConfigSelector = "-" diff --git a/components/guns/grpc/core.go b/components/guns/grpc/core.go index 4ba807217..2e4ceda63 100644 --- a/components/guns/grpc/core.go +++ b/components/guns/grpc/core.go @@ -178,7 +178,7 @@ func (g *Gun) shoot(ammo *ammo.Ammo) { timeout := defaultTimeout if g.conf.Timeout != 0 { - timeout = time.Second * g.conf.Timeout + timeout = g.conf.Timeout } ctx, cancel := context.WithTimeout(context.Background(), timeout)