mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-22 03:51:00 +00:00
Remove unchanged default const
This commit is contained in:
parent
db12d38f15
commit
076a30d61c
1 changed files with 1 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
use anyhow::Error;
|
||||
use background_jobs::{create_server, Backoff, Job, MaxRetries, Processor, WorkerConfig};
|
||||
use background_jobs::{create_server, Job, MaxRetries, Processor, WorkerConfig};
|
||||
|
||||
const DEFAULT_QUEUE: &'static str = "default";
|
||||
|
||||
|
@ -102,9 +102,4 @@ impl Processor for MyProcessor {
|
|||
//
|
||||
// Jobs can optionally override this value
|
||||
const MAX_RETRIES: MaxRetries = MaxRetries::Count(1);
|
||||
|
||||
// The logic to determine how often to retry this job if it fails
|
||||
//
|
||||
// Jobs can optionally override this value
|
||||
const BACKOFF_STRATEGY: Backoff = Backoff::Exponential(2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue