etcdctl: main routine of import command should wait for goroutine existing

release-2.1
Xiang Li 2015-03-31 11:53:49 -07:00
parent 46cfbb3a26
commit 1024f587e0
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}