1
0
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:
Nedyalko Dyakov
2025-04-17 14:25:11 +03:00
parent 260a56cc45
commit 9402e9028c

View File

@@ -602,6 +602,7 @@ func (c *sentinelFailover) MasterAddr(ctx context.Context) (string, error) {
}
wg.Wait()
close(errCh)
if masterAddr != "" {
return masterAddr, nil
}