Change lock type to write lock in eventBroadcasterImpl

This commit is contained in:
Ted Yu 2019-05-17 19:19:42 -07:00 committed by Ted Yu
parent 314264aeaf
commit 94af465819

View File

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