From 680bd5062a1116b9c46c8c3fa2a2ade01bce9a6f Mon Sep 17 00:00:00 2001 From: Lukas Vogel Date: Fri, 17 Apr 2020 17:12:13 +0200 Subject: [PATCH] cs: fix fast beaconing recovery (#3718) There was a regression that the beaconing registrar does not fast recover after a stale period for registering down segments. This PR fixes it. Co-authored-by: Oncilla --- go/cs/beaconing/registrar.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/cs/beaconing/registrar.go b/go/cs/beaconing/registrar.go index 952b8dfead..89344c49b8 100644 --- a/go/cs/beaconing/registrar.go +++ b/go/cs/beaconing/registrar.go @@ -169,7 +169,9 @@ func (r *Registrar) registerRemote(ctx context.Context, segments <-chan beacon.B if expected > 0 && s.count <= 0 { return common.NewBasicError("No beacons registered", nil, "candidates", expected) } - r.lastSucc = r.tick.now + if s.count > 0 { + r.lastSucc = r.tick.now + } r.logSummary(logger, s) return nil }