Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/unbounded-net-controller/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ func startServer(ctx context.Context, healthPort int, requireDashboardAuth bool,
clusterStatusCache := NewClusterStatusCache(health)

health.clusterStatusCache = clusterStatusCache
go clusterStatusCache.Run(context.Background())
go clusterStatusCache.Run(ctx)

broadcaster := NewWSBroadcaster(health)
go broadcaster.Run(context.Background())
go broadcaster.Run(ctx)
// Node status changes patch the pre-built cache in-place and notify the broadcaster.
health.statusCache.SetOnChange(func(nodeName string, status *NodeStatusResponse) {
statusCopy := *status
Expand Down
Loading