Move isOutdated logic to updateChan consumation
This commit is contained in:
parent
dd8c0d1e9e
commit
8d1adaaef3
2 changed files with 26 additions and 25 deletions
|
|
@ -315,6 +315,11 @@ func (h *Headscale) requestUpdate(m *tailcfg.Node) error {
|
|||
}
|
||||
|
||||
func (h *Headscale) isOutdated(m *Machine) bool {
|
||||
err := h.UpdateMachine(m)
|
||||
if err != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
lastChange := h.getLastStateChange()
|
||||
log.Trace().
|
||||
Str("func", "keepAlive").
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue