Skip to content

Commit

Permalink
Use Duration::from_secs
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Rousskov <[email protected]>
  • Loading branch information
ehuss and Mark-Simulacrum authored Nov 23, 2024
1 parent 1f1710c commit b378456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/merge_conflict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const MERGE_CONFLICT_KEY: &str = "merge-conflict";
/// don't particularly want to loop to avoid hitting GitHub too hard, and this
/// conflict notification is not that important to be perfect. If it is too
/// unreliable, then we could add a loop that will try one or two more times.
const UNKNOWN_RESCAN_DELAY: Duration = Duration::new(60, 0);
const UNKNOWN_RESCAN_DELAY: Duration = Duration::from_secs(60);

/// State stored in the database for a PR.
#[derive(Debug, Default, Deserialize, Serialize)]
Expand Down

0 comments on commit b378456

Please sign in to comment.