1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

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).
This commit is contained in:
Markus Lehtonen 2024-08-19 14:01:02 +03:00
parent a851aae914
commit bf6ffadf36

View file

@ -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),
}