Skip to main content

random_delay

Function random_delay 

Source
pub fn random_delay(min: Duration, max: Duration) -> Duration
Expand description

Pick a randomised delay in [min, max] to wait before a possession check runs. The bounds come from ReplicationConfig (defaulting to POSSESSION_CHECK_DELAY_MIN/MAX) so tests can shorten them.