Skip to content

Commit

Permalink
Merge pull request #140 from squirrd/move_wgadd_function
Browse files Browse the repository at this point in the history
OCPBUGS-33154: Incorrect use of go wait groups
  • Loading branch information
openshift-merge-bot[bot] committed May 6, 2024
2 parents a48ba58 + aeab4d8 commit 43c7556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cloud-network-config-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ func main() {
klog.Exitf("Error running CloudPrivateIPConfig controller: %s", err.Error())
}
}()
wg.Add(1)

// AWS and OpenStack use a configmap "kube-cloud-config" to keep track of additional
// data such as the ca-bundle.pem. Add a controller that restarts the operator if that configmap
Expand All @@ -222,7 +221,8 @@ func main() {
}
}()
}


wg.Add(1)
go func() {
defer wg.Done()
if err = nodeController.Run(stopCh); err != nil {
Expand Down

0 comments on commit 43c7556

Please sign in to comment.