mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/swarm/swarm-smoke: address PR comments
This commit is contained in:
parent
9a09a0399b
commit
0aa6d71a9a
1 changed files with 4 additions and 6 deletions
|
|
@ -42,13 +42,11 @@ func slidingWindowCmd(ctx *cli.Context, tuid string) error {
|
|||
errc <- slidingWindow(ctx, tuid)
|
||||
}()
|
||||
|
||||
select {
|
||||
case err := <-errc:
|
||||
err := <-errc
|
||||
if err != nil {
|
||||
metrics.GetOrRegisterCounter(fmt.Sprintf("%s.fail", commandName), nil).Inc(1)
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
func slidingWindow(ctx *cli.Context, tuid string) error {
|
||||
|
|
|
|||
Loading…
Reference in a new issue