Skip to content

Commit

Permalink
Use new update state logic for derp maps
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby committed Jun 12, 2022
1 parent e0ef601 commit a050158
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions derp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

0 comments on commit a050158

Please sign in to comment.