Skip to content

Commit bf6ffad

Browse files
committed
nfd-master: use only unbuffered chans in the nfd api-controller
There's no reason why the "update all" chans should be buffered (while the other are not).
1 parent a851aae commit bf6ffad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/nfd-master/nfd-api-controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ func init() {
6161
func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiControllerOptions) (*nfdController, error) {
6262
c := &nfdController{
6363
stopChan: make(chan struct{}),
64-
updateAllNodesChan: make(chan struct{}, 1),
64+
updateAllNodesChan: make(chan struct{}),
6565
updateOneNodeChan: make(chan string),
66-
updateAllNodeFeatureGroupsChan: make(chan struct{}, 1),
66+
updateAllNodeFeatureGroupsChan: make(chan struct{}),
6767
updateNodeFeatureGroupChan: make(chan string),
6868
}
6969

0 commit comments

Comments
 (0)