Skip to content

Commit

Permalink
Use sync.Mutex instead of sync.RWMutex
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Mar 11, 2022
1 parent d801924 commit 8833e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/network/stream_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type streamData struct {
// read from it, which takes up lots of CPU over time.
type streamManager struct {
ctx context.Context
streamDataMu sync.RWMutex
streamDataMu sync.Mutex
streamData map[string]*streamData
}

Expand Down

0 comments on commit 8833e71

Please sign in to comment.