mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-19 01:12:53 +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 {
|
||||
*watch.Broadcaster
|
||||
mu sync.RWMutex
|
||||
mu sync.Mutex
|
||||
eventCache map[eventKey]*v1beta1.Event
|
||||
sleepDuration time.Duration
|
||||
sink EventSink
|
||||
|
Reference in New Issue
Block a user