summaryrefslogtreecommitdiff
path: root/internal/discovery/manager.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-08-29 14:05:20 +0200
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-08-29 14:40:24 +0200
commit4a23134e1e5d70a9c8c5857790dbf27585ca3b1f (patch)
treec7edff437df88d6d127f8bda0a35d59fc0d3dc68 /internal/discovery/manager.go
parent5461efc826952833fcdecca5d3daa3ee70423a31 (diff)
Discovery: Add cache argument and embed unmarshal on startup
Diffstat (limited to 'internal/discovery/manager.go')
-rw-r--r--internal/discovery/manager.go4
1 files changed, 2 insertions, 2 deletions
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()