Change lock type to write lock in eventBroadcasterImpl

Kubernetes-commit: 94af465819bd41a97b00acf997d5a7e077cbb654
This commit is contained in:
Ted Yu
2019-05-17 19:19:42 -07:00
committed by Kubernetes Publisher
parent 2830425c91
commit 3ebee8cab0

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