Skip to content

Commit

Permalink
nfd-master: use only unbuffered chans in the nfd api-controller
Browse files Browse the repository at this point in the history
There's no reason why the "update all" chans should be buffered (while
the other are not).
  • Loading branch information
marquiz committed Aug 19, 2024
1 parent a851aae commit bf6ffad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/nfd-master/nfd-api-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func init() {
func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiControllerOptions) (*nfdController, error) {
c := &nfdController{
stopChan: make(chan struct{}),
updateAllNodesChan: make(chan struct{}, 1),
updateAllNodesChan: make(chan struct{}),
updateOneNodeChan: make(chan string),
updateAllNodeFeatureGroupsChan: make(chan struct{}, 1),
updateAllNodeFeatureGroupsChan: make(chan struct{}),
updateNodeFeatureGroupChan: make(chan string),
}

Expand Down

0 comments on commit bf6ffad

Please sign in to comment.