summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-02-03 13:29:15 +0300
committerGitHub <[email protected]>2021-02-03 13:29:15 +0300
commit4eb0740ef5a5a940a16346f0ded0c4e9ee893b34 (patch)
tree79095e4cca6b36cd8953d8542e8dd332caa2c892
parent06abdf7df8cadcaadba57525db5aa897c12f7b28 (diff)
Update reset.go
Fix race in the reset command
-rw-r--r--cmd/cli/reset.go3
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