etcdctl: main routine of import command should wait for goroutine existing
parent
46cfbb3a26
commit
1024f587e0
|
@ -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…
Reference in New Issue