mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-22 17:41:07 +00:00
Increase backoff exponent for deliveries
This commit is contained in:
parent
13ce219d76
commit
467bd860d9
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
use crate::{error::MyError, jobs::JobState};
|
use crate::{error::MyError, jobs::JobState};
|
||||||
use activitystreams::primitives::XsdAnyUri;
|
use activitystreams::primitives::XsdAnyUri;
|
||||||
use anyhow::Error;
|
use anyhow::Error;
|
||||||
use background_jobs::{Job, Processor};
|
use background_jobs::{Backoff, Job, Processor};
|
||||||
use std::{future::Future, pin::Pin};
|
use std::{future::Future, pin::Pin};
|
||||||
use tokio::sync::oneshot;
|
use tokio::sync::oneshot;
|
||||||
|
|
||||||
|
@ -53,4 +53,5 @@ impl Processor for DeliverProcessor {
|
||||||
|
|
||||||
const NAME: &'static str = "DeliverProcessor";
|
const NAME: &'static str = "DeliverProcessor";
|
||||||
const QUEUE: &'static str = "default";
|
const QUEUE: &'static str = "default";
|
||||||
|
const BACKOFF_STRATEGY: Backoff = Backoff::Exponential(8);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue