mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-25 10:01:46 +00:00
Account for updates in shared namespaces
This commit is contained in:
2
app.go
2
app.go
@@ -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