1
0
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:
Andrey Bobelev 2025-07-09 08:04:14 +02:00 committed by Andrey Bobelev
parent b904276f2b
commit 2e8472a31d
No known key found for this signature in database
GPG Key ID: FDBD92BC4F52F461

View File

@ -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()