refLagWatch property
How long after refReplicaWindow has passed a write is still remembered, for reporting only.
Past the window an answer naming a commit this client wrote past is
believed — that is the window's trade-off. It is also the only evidence
there is that a replica lagged longer than the window, and with the
record gone nothing could say so: the read looks exactly like a peer
having reverted the branch. So the record outlives its authority by this
long, and the first read to meet it reports github.ref.behind-believed
and retires it.
Two minutes, because the read that would observe it is the next poll and the shortest interval the loop polls at is one minute.
Implementation
@visibleForTesting
Duration refLagWatch = const Duration(minutes: 2);