Skip to content

Commit fedd45f

Browse files
committed
Eliminate redundant dial mutex causing unbounded connection queue contention
1 parent 00d9848 commit fedd45f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

redis.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ func (hs *hooksMixin) withProcessPipelineHook(
176176
}
177177

178178
func (hs *hooksMixin) dialHook(ctx context.Context, network, addr string) (net.Conn, error) {
179-
hs.hooksMu.Lock()
180-
defer hs.hooksMu.Unlock()
181179
return hs.current.dial(ctx, network, addr)
182180
}
183181

0 commit comments

Comments
 (0)