etcdctl: main routine of import command should wait for goroutine existing
This commit is contained in:
@ -80,6 +80,7 @@ func handleImportSnap(c *cli.Context) {
|
|||||||
}
|
}
|
||||||
n := copyKeys(all.Node, setc)
|
n := copyKeys(all.Node, setc)
|
||||||
close(setc)
|
close(setc)
|
||||||
|
wg.Wait()
|
||||||
fmt.Printf("finished importing %d keys\n", n)
|
fmt.Printf("finished importing %d keys\n", n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user