There is a rule in using go channel: never close a channel in the
receiver side.
fix https://github.com/kubernetes/kubernetes/issues/45215
delete the channel close line
change the event channel element type to struct{}
go fmt
eventCh channel is not essential to be buffered
Showing
Please
register
or
sign in
to comment