mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server&tests: Fix goroutine leaks
This commit is contained in:
@@ -260,7 +260,7 @@ func restoreCluster(t *testing.T, clusterN int, dbPath string) (
|
||||
cfgs[i] = cfg
|
||||
}
|
||||
|
||||
sch := make(chan *embed.Etcd)
|
||||
sch := make(chan *embed.Etcd, len(cfgs))
|
||||
for i := range cfgs {
|
||||
go func(idx int) {
|
||||
srv, err := embed.StartEtcd(cfgs[idx])
|
||||
|
||||
Reference in New Issue
Block a user