Skip to content

Commit

Permalink
chore: apply suggestions from CR
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Nov 29, 2023
1 parent e6f1c0b commit 2fe6a2d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ impl State for UpgradeCandidateRegion {
}

impl UpgradeCandidateRegion {
const UPGRADE_CANDIDATE_REGION_RTT: Duration = Duration::from_secs(1);

/// Returns the timeout of the upgrade candidate region.
///
/// Equals `replay_timeout` + RTT
fn send_upgrade_candidate_region_timeout(&self) -> Duration {
self.replay_timeout + Duration::from_secs(1)
self.replay_timeout + UpgradeCandidateRegion::UPGRADE_CANDIDATE_REGION_RTT
}

/// Builds upgrade region instruction.
Expand Down

0 comments on commit 2fe6a2d

Please sign in to comment.