Skip to content

Commit

Permalink
remove unnecessary mutext locks
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Sep 5, 2024
1 parent 5d85ae6 commit 769cbd5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions balancer_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,6 @@ func (acbw *acBalancerWrapper) updateState(s connectivity.State, curAddr resolve
}
acbw.stateListener(scs)

acbw.mu.Lock()
defer acbw.mu.Unlock()
for lis := range acbw.connectivityListeners {
lis.OnStateChange(scs)
}
Expand Down

0 comments on commit 769cbd5

Please sign in to comment.