do nothing on default case in processPodEvent

This commit is contained in:
Felix Kunde
2022-05-17 18:34:13 +02:00
parent bcd34c3110
commit cc4920fb5d
+1 -1
View File
@@ -1046,8 +1046,8 @@ func (c *Cluster) processPodEvent(obj interface{}) error {
select {
case <-subscriber.stopEvent:
c.unregisterPodSubscriber(podName)
case subscriber.podEvents <- event:
default:
subscriber.podEvents <- event
}
}
// hold lock for the time of processing the event to avoid race condition