From 9402e9028cc422069d8a1bba066377e38b80a1b2 Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Thu, 17 Apr 2025 14:25:11 +0300 Subject: [PATCH] close the errCh to not block --- sentinel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sentinel.go b/sentinel.go index 84355868..d5a26ac6 100644 --- a/sentinel.go +++ b/sentinel.go @@ -602,6 +602,7 @@ func (c *sentinelFailover) MasterAddr(ctx context.Context) (string, error) { } wg.Wait() + close(errCh) if masterAddr != "" { return masterAddr, nil }