From 7145720395452de674605bd20f48260199cfe5e6 Mon Sep 17 00:00:00 2001 From: Dmitry <46797839+dkeysil@users.noreply.github.com> Date: Fri, 9 Feb 2024 16:55:57 +0100 Subject: [PATCH] Update services/components/registry/registry.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Caner Çıdam --- services/components/registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/components/registry/registry.go b/services/components/registry/registry.go index 6fe021a4..529227b9 100644 --- a/services/components/registry/registry.go +++ b/services/components/registry/registry.go @@ -85,8 +85,8 @@ func (br *botRegistry) LoadAssignedBots() ([]config.AgentConfig, error) { br.lastChangeDetected.Set() br.mu.Lock() - defer br.mu.Unlock() br.botConfigs = agts + br.mu.Unlock() logger.WithField("count", len(agts)).Info("updated bot list") } else {