From 8eb7d47072cb2c39ba9595668688f24b1f561d86 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Thu, 12 Aug 2021 21:57:20 +0200 Subject: [PATCH] Fixed linting --- app.go | 5 ++++- namespaces.go | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index fcf287f..34fb77b 100644 --- a/app.go +++ b/app.go @@ -135,7 +135,10 @@ func (h *Headscale) expireEphemeralNodesWorker() { if err != nil { log.Error().Err(err).Str("machine", m.Name).Msg("🤮 Cannot delete ephemeral machine from the database") } - h.notifyChangesToPeers(&m) + err = h.notifyChangesToPeers(&m) + if err != nil { + continue + } } } } diff --git a/namespaces.go b/namespaces.go index ff9eeac..1bf8c2d 100644 --- a/namespaces.go +++ b/namespaces.go @@ -169,7 +169,10 @@ func (h *Headscale) checkForNamespacesPendingUpdates() { continue } for _, m := range *machines { - h.notifyChangesToPeers(&m) + err = h.notifyChangesToPeers(&m) + if err != nil { + continue + } } } newV, err := h.getValue("namespaces_pending_updates")