Skip to content

Commit

Permalink
cs: fix fast beaconing recovery (#3718)
Browse files Browse the repository at this point in the history
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 <roos@anapaya.net>
  • Loading branch information
lukedirtwalker and oncilla authored Apr 17, 2020
1 parent 0f26337 commit 680bd50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/cs/beaconing/registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 680bd50

Please sign in to comment.