Merge pull request #78063 from tedyu/evt-lock

Change lock type to write lock in eventBroadcasterImpl
This commit is contained in:
Kubernetes Prow Robot
2019-05-18 05:01:12 -07:00
committed by GitHub

View File

@@ -59,7 +59,7 @@ type eventKey struct {
type eventBroadcasterImpl struct {
*watch.Broadcaster
mu sync.RWMutex
mu sync.Mutex
eventCache map[eventKey]*v1beta1.Event
sleepDuration time.Duration
sink EventSink