Skip to content

Commit

Permalink
Make retry isize again
Browse files Browse the repository at this point in the history
To avoid the builder stuff being a breaking change
  • Loading branch information
jonhoo committed Jan 3, 2024
1 parent 2c728b1 commit 8c06cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proto/single/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub use self::resp::*;

const JOB_DEFAULT_QUEUE: &str = "default";
const JOB_DEFAULT_RESERVED_FOR_SECS: usize = 600;
const JOB_DEFAULT_RETRY_COUNT: usize = 25;
const JOB_DEFAULT_RETRY_COUNT: isize = 25;
const JOB_DEFAULT_PRIORITY: u8 = 5;
const JOB_DEFAULT_BACKTRACE: usize = 0;

Expand Down Expand Up @@ -108,7 +108,7 @@ pub struct Job {
/// Defaults to 25.
#[serde(skip_serializing_if = "Option::is_none")]
#[builder(default = "Some(JOB_DEFAULT_RETRY_COUNT)")]
pub retry: Option<usize>,
pub retry: Option<isize>,

/// The priority of this job from 1-9 (9 is highest).
///
Expand Down

1 comment on commit 8c06cc7

@jonhoo
Copy link
Owner Author

@jonhoo jonhoo commented on 8c06cc7 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @rustworthy — had to revert this change from 21179ac as it is (I think) the only change that wouldn't be backwards incompatible.

Please sign in to comment.