Skip to content

Commit 5884b3f

Browse files
authored
Fix usage of errgroup to sync team users (#829)
1 parent a8b6093 commit 5884b3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/controller/atlasproject/team_reconciler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func ensureTeamUsersAreInSync(ctx context.Context, workflowCtx *workflow.Context
180180
return workflow.Terminate(workflow.TeamUsersNotReady, err.Error())
181181
}
182182

183+
g, taskContext = errgroup.WithContext(ctx)
183184
toAdd := make([]string, 0, len(team.Spec.Usernames))
184185
lock := sync.Mutex{}
185186
for _, username := range team.Spec.Usernames {

0 commit comments

Comments
 (0)