Skip to content

Commit 9402e90

Browse files
committed
close the errCh to not block
1 parent 260a56c commit 9402e90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentinel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ func (c *sentinelFailover) MasterAddr(ctx context.Context) (string, error) {
602602
}
603603

604604
wg.Wait()
605+
close(errCh)
605606
if masterAddr != "" {
606607
return masterAddr, nil
607608
}

0 commit comments

Comments
 (0)