Skip to content

Commit

Permalink
fix grpc config timeout
Browse files Browse the repository at this point in the history
fix grpc config timeout
  • Loading branch information
oke11o committed Oct 2, 2023
1 parent 967b9a8 commit 7e2f7ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "-"

Expand Down
2 changes: 1 addition & 1 deletion components/guns/grpc/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e2f7ba

Please sign in to comment.