Skip to content

Commit

Permalink
fixed bug with backup fan-out code (#2973)
Browse files Browse the repository at this point in the history
  • Loading branch information
srfrog authored Feb 5, 2019
1 parent 8ed65c8 commit 7f41e89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker/backup_ee.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ func BackupOverNetwork(pctx context.Context, dst string) error {
// If we receive any failures, we cancel the process.
errCh := make(chan error, 1)
for _, gid := range gids {
req.GroupId = gid
go func() {
go func(gid uint32) {
req.GroupId = gid
errCh <- backupGroup(ctx, req)
}()
}(gid)
}

for i := 0; i < len(gids); i++ {
Expand Down

0 comments on commit 7f41e89

Please sign in to comment.