mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #78063 from tedyu/evt-lock
Change lock type to write lock in eventBroadcasterImpl
This commit is contained in:
commit
667c3ed94c
@ -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