Skip to content

Commit 94af465

Browse files
tedyuyutedz
authored andcommitted
Change lock type to write lock in eventBroadcasterImpl
1 parent 314264a commit 94af465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/client-go/tools/events/event_broadcaster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type eventKey struct {
5959

6060
type eventBroadcasterImpl struct {
6161
*watch.Broadcaster
62-
mu sync.RWMutex
62+
mu sync.Mutex
6363
eventCache map[eventKey]*v1beta1.Event
6464
sleepDuration time.Duration
6565
sink EventSink

0 commit comments

Comments
 (0)