From 839b6826357f6181a506f7db04422013b7ba552e Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Tue, 5 Dec 2023 16:22:44 +0300 Subject: [PATCH] PMM-12761 fix race condition for services. (#2672) --- managed/services/ha/services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed/services/ha/services.go b/managed/services/ha/services.go index eabc233c8a..393044b924 100644 --- a/managed/services/ha/services.go +++ b/managed/services/ha/services.go @@ -39,7 +39,7 @@ func newServices() *services { return &services{ all: make(map[string]LeaderService), running: make(map[string]LeaderService), - refresh: make(chan struct{}), + refresh: make(chan struct{}, 1), l: logrus.WithField("component", "ha-services"), } }