mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 20:11:54 +02:00
do nothing on default case in processPodEvent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user