Skip to content

Commit b378456

Browse files
Use Duration::from_secs
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
1 parent 1f1710c commit b378456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/merge_conflict.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const MERGE_CONFLICT_KEY: &str = "merge-conflict";
4343
/// don't particularly want to loop to avoid hitting GitHub too hard, and this
4444
/// conflict notification is not that important to be perfect. If it is too
4545
/// unreliable, then we could add a loop that will try one or two more times.
46-
const UNKNOWN_RESCAN_DELAY: Duration = Duration::new(60, 0);
46+
const UNKNOWN_RESCAN_DELAY: Duration = Duration::from_secs(60);
4747

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

0 commit comments

Comments
 (0)