mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: main routine of import command should wait for goroutine existing
This commit is contained in:
parent
7df4f5c804
commit
62ce6eef7b
@ -80,6 +80,7 @@ func handleImportSnap(c *cli.Context) {
|
||||
}
|
||||
n := copyKeys(all.Node, setc)
|
||||
close(setc)
|
||||
wg.Wait()
|
||||
fmt.Printf("finished importing %d keys\n", n)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user