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,14 +42,12 @@ func slidingWindowCmd(ctx *cli.Context, tuid string) error {
|
||||||
errc <- slidingWindow(ctx, tuid)
|
errc <- slidingWindow(ctx, tuid)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
select {
|
err := <-errc
|
||||||
case err := <-errc:
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
metrics.GetOrRegisterCounter(fmt.Sprintf("%s.fail", commandName), nil).Inc(1)
|
metrics.GetOrRegisterCounter(fmt.Sprintf("%s.fail", commandName), nil).Inc(1)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func slidingWindow(ctx *cli.Context, tuid string) error {
|
func slidingWindow(ctx *cli.Context, tuid string) error {
|
||||||
var hashes []uploadResult //swarm hashes of the uploads
|
var hashes []uploadResult //swarm hashes of the uploads
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue