Skip to content

Commit

Permalink
util/mon: remove redundant locking in NewMonitorInheritWithLimit
Browse files Browse the repository at this point in the history
This locking is no longer needed as of 472e740.

Release note: None
  • Loading branch information
yuzefovich committed Mar 29, 2023
1 parent 6290f69 commit 5aed635
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/util/mon/bytes_usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@ func NewMonitorWithLimit(
func NewMonitorInheritWithLimit(
name redact.RedactableString, limit int64, m *BytesMonitor,
) *BytesMonitor {
m.mu.Lock()
defer m.mu.Unlock()
return NewMonitorWithLimit(
name,
m.resource,
Expand Down

0 comments on commit 5aed635

Please sign in to comment.