From 4a23134e1e5d70a9c8c5857790dbf27585ca3b1f Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Fri, 29 Aug 2025 14:05:20 +0200 Subject: Discovery: Add cache argument and embed unmarshal on startup --- internal/discovery/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/discovery/manager.go') diff --git a/internal/discovery/manager.go b/internal/discovery/manager.go index 134525b..4fb4f8e 100644 --- a/internal/discovery/manager.go +++ b/internal/discovery/manager.go @@ -72,10 +72,10 @@ func (m *Manager) Startup(ctx context.Context, cb func()) { } m.unlock(false) // we already log the warning - discoCopy.Servers(ctx) //nolint:errcheck + discoCopy.Servers(ctx, false) //nolint:errcheck m.lock(true) - m.disco.UpdateServers(discoCopy) + m.disco.UpdateServers(discoCopy.ServerList) m.unlock(true) m.wait.Done() -- cgit v1.2.3