Commit 8affb9d
committed
Revert "nfd-master: use only unbuffered chans in the nfd api-controller"
Fixes a bug where updates to NodeFeatureGroup objects were not happening
after the initial sync.
We need to use buffered channels for the "update all" channels as there
is the default: case in select that is sending the update all signal (to
the channel). An alternative would be to remove the default: case from
the select block but it is more efficient this way - just skip if the
reader side hasn't yet got the "update all" signal.
This reverts commit bf6ffad.1 parent 0ef859f commit 8affb9d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments