mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Change lock type to write lock in eventBroadcasterImpl
This commit is contained in:
parent
314264aeaf
commit
94af465819
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user