mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-22 09:31:07 +00:00
Give jobs better names
This commit is contained in:
parent
f016f14efe
commit
4d07476fe7
10 changed files with 10 additions and 10 deletions
|
@ -60,7 +60,7 @@ impl ActixJob for Announce {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "AnnounceProcessor";
|
const NAME: &'static str = "relay::jobs::apub::Announce";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -105,7 +105,7 @@ impl ActixJob for Follow {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "FollowProcessor";
|
const NAME: &'static str = "relay::jobs::apub::Follow";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -34,7 +34,7 @@ impl ActixJob for Forward {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "ForwardProcessor";
|
const NAME: &'static str = "relay::jobs::apub::Forward";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -29,7 +29,7 @@ impl ActixJob for Reject {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "RejectProcessor";
|
const NAME: &'static str = "relay::jobs::apub::Reject";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -42,7 +42,7 @@ impl ActixJob for Undo {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), anyhow::Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "UndoProcessor";
|
const NAME: &'static str = "relay::jobs::apub::Undo";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -26,7 +26,7 @@ impl ActixJob for Deliver {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "DeliverProcessor";
|
const NAME: &'static str = "relay::jobs::Deliver";
|
||||||
const BACKOFF: Backoff = Backoff::Exponential(8);
|
const BACKOFF: Backoff = Backoff::Exponential(8);
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
|
|
|
@ -39,7 +39,7 @@ impl ActixJob for DeliverMany {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Ready<Result<(), Error>>;
|
type Future = Ready<Result<(), Error>>;
|
||||||
|
|
||||||
const NAME: &'static str = "DeliverManyProcessor";
|
const NAME: &'static str = "relay::jobs::DeliverMany";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
ready(self.perform(state))
|
ready(self.perform(state))
|
||||||
|
|
|
@ -85,7 +85,7 @@ impl ActixJob for QueryInstance {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "InstanceProcessor";
|
const NAME: &'static str = "relay::jobs::QueryInstance";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -56,7 +56,7 @@ impl ActixJob for QueryNodeinfo {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "NodeinfoProcessor";
|
const NAME: &'static str = "relay::jobs::QueryNodeinfo";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
|
@ -23,7 +23,7 @@ impl ActixJob for Listeners {
|
||||||
type State = JobState;
|
type State = JobState;
|
||||||
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
type Future = Pin<Box<dyn Future<Output = Result<(), Error>>>>;
|
||||||
|
|
||||||
const NAME: &'static str = "ProcessListenersProcessor";
|
const NAME: &'static str = "relay::jobs::Listeners";
|
||||||
|
|
||||||
fn run(self, state: Self::State) -> Self::Future {
|
fn run(self, state: Self::State) -> Self::Future {
|
||||||
Box::pin(self.perform(state))
|
Box::pin(self.perform(state))
|
||||||
|
|
Loading…
Reference in a new issue