mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-20 18:48:02 +00:00
Change lock type to write lock in eventBroadcasterImpl
Kubernetes-commit: 94af465819bd41a97b00acf997d5a7e077cbb654
This commit is contained in:
committed by
Kubernetes Publisher
parent
2830425c91
commit
3ebee8cab0
@@ -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
|
||||||
|
Reference in New Issue
Block a user