mirror of
https://github.com/redis/go-redis.git
synced 2025-09-11 18:10:43 +03:00
close the errCh to not block
This commit is contained in:
@@ -602,6 +602,7 @@ func (c *sentinelFailover) MasterAddr(ctx context.Context) (string, error) {
|
||||
}
|
||||
|
||||
wg.Wait()
|
||||
close(errCh)
|
||||
if masterAddr != "" {
|
||||
return masterAddr, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user