mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-14 13:51:01 +02:00
fix: prevent single node timeout from blocking all other updates
One blocked/slow node in sendAll() was causing early return, skipping all remaining nodes in iteration. Change return to continue to ensure all healthy nodes receive updates even when some fail.
This commit is contained in:
parent
b904276f2b
commit
2e8472a31d
@ -281,7 +281,7 @@ func (n *Notifier) sendAll(update types.StateUpdate) {
|
||||
notifierUpdateSent.WithLabelValues("cancelled", update.Type.String(), "send-all").Inc()
|
||||
}
|
||||
|
||||
return
|
||||
continue
|
||||
case c <- update:
|
||||
if debugHighCardinalityMetrics {
|
||||
notifierUpdateSent.WithLabelValues("ok", update.Type.String(), "send-all", id.String()).Inc()
|
||||
|
Loading…
Reference in New Issue
Block a user