Account for updates in shared namespaces

This commit is contained in:
Kristoffer Dalby committed 2021-10-06 19:32:15 +00:00
1 parent c582c8d206
commit ba391bc2ed
2 files changed
+20 -5

No files matched your search

+1 -1
View File
@@ -250,8 +250,8 @@ func (h *Headscale) setLastStateChangeToNow(namespace string) {
func (h *Headscale) getLastStateChange(namespace string) time.Time {
if wrapped, ok := h.lastStateChange.Load(namespace); ok {
lastChange, _ := wrapped.(time.Time)
return lastChange
return lastChange
}
now := time.Now().UTC()