mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-31 02:34:07 +09:00
Account for updates in shared namespaces
This commit is contained in:
1 parent
c582c8d206
commit
ba391bc2ed
2 files changed
+20
-5
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user