Skip to content

Commit

Permalink
use write-only mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
ortuman committed Jan 7, 2022
1 parent 5cba44a commit 2be80b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kv/memberlist/memberlist_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ type KV struct {
messageCounter int // Used to give each message in the sentMessages and receivedMessages a unique ID, for UI.

// Per-key value update workers
workersMu sync.RWMutex
workersMu sync.Mutex
workersChannels map[string]chan valueUpdate

// closed on shutdown
Expand Down

0 comments on commit 2be80b0

Please sign in to comment.