Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont committed Aug 12, 2021
1 parent ab61c87 commit 8eb7d47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8eb7d47

Please sign in to comment.