cs: fix fast beaconing recovery
There was a regression that the beaconing registrar does not fast recover
after a stale period for registering down segments.
This PR fixes it.
@@ -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)
}
+ if s.count > 0 {
r.lastSucc = r.tick.now
+ }
r.logSummary(logger, s)
return nil
}
