Skip to content

Commit

Permalink
Don't check numbers unaffected by the limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Oct 31, 2023
1 parent e4c987e commit f241c40
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions deepwell/src/config/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ impl ConfigFile {

// Assertions for bad values
const RSMQ_DELAY_LIMIT: u64 = 9999999;
assert!(job_min_poll_delay_secs < RSMQ_DELAY_LIMIT, "Minimum poll delay time too long");
assert!(job_max_poll_delay_secs < RSMQ_DELAY_LIMIT, "Maximum poll delay time too long");
assert!(job_prune_session_secs < RSMQ_DELAY_LIMIT, "Session prune job period time too long");
assert!(job_prune_text_secs < RSMQ_DELAY_LIMIT, "Text prune job period time too long");
assert!(job_name_change_refill_secs < RSMQ_DELAY_LIMIT, "Name change refill job period time too long");
Expand Down

0 comments on commit f241c40

Please sign in to comment.