diff options
author | Valery Piashchynski <[email protected]> | 2021-02-03 13:29:15 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-03 13:29:15 +0300 |
commit | 4eb0740ef5a5a940a16346f0ded0c4e9ee893b34 (patch) | |
tree | 79095e4cca6b36cd8953d8542e8dd332caa2c892 | |
parent | 06abdf7df8cadcaadba57525db5aa897c12f7b28 (diff) |
Update reset.go
Fix race in the reset command
-rw-r--r-- | cmd/cli/reset.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/cli/reset.go b/cmd/cli/reset.go index a5055a53..40428fe3 100644 --- a/cmd/cli/reset.go +++ b/cmd/cli/reset.go @@ -71,7 +71,8 @@ func resetHandler(_ *cobra.Command, args []string) error { defer bar.Increment() var done bool - err = client.Call(Reset, service, &done) + cl := client.Go(Reset, service, &done, nil) + <-cl.Done if err != nil { result <- errors.E(op, err) return |