Remove unchanged default const

This commit is contained in:
asonix 2020-03-20 22:13:53 -05:00
parent db12d38f15
commit 076a30d61c

View file

@ -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);
}