From a050158d11e618b37bf8c9c9b27599d2578cc498 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 12 Jun 2022 12:27:37 +0000 Subject: [PATCH] Use new update state logic for derp maps --- derp.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/derp.go b/derp.go index 7abce683..293cf81a 100644 --- a/derp.go +++ b/derp.go @@ -152,16 +152,7 @@ func (h *Headscale) scheduledDERPMapUpdateWorker(cancelChan <-chan struct{}) { h.DERPMap.Regions[h.DERPServer.region.RegionID] = &h.DERPServer.region } - namespaces, err := h.ListNamespaces() - if err != nil { - log.Error(). - Err(err). - Msg("Failed to fetch namespaces") - } - - for _, namespace := range namespaces { - h.setLastStateChangeToNow(namespace.Name) - } + h.setLastStateChangeToNow() } } }