Give jobs better names

This commit is contained in:
asonix 2020-04-20 20:03:46 -05:00
parent f016f14efe
commit 4d07476fe7
10 changed files with 10 additions and 10 deletions

View file

@ -60,7 +60,7 @@ impl ActixJob for Announce {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -105,7 +105,7 @@ impl ActixJob for Follow {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -34,7 +34,7 @@ impl ActixJob for Forward {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -29,7 +29,7 @@ impl ActixJob for Reject {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -42,7 +42,7 @@ impl ActixJob for Undo {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -26,7 +26,7 @@ impl ActixJob for Deliver {
type State = JobState;
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);
fn run(self, state: Self::State) -> Self::Future {

View file

@ -39,7 +39,7 @@ impl ActixJob for DeliverMany {
type State = JobState;
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 {
ready(self.perform(state))

View file

@ -85,7 +85,7 @@ impl ActixJob for QueryInstance {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -56,7 +56,7 @@ impl ActixJob for QueryNodeinfo {
type State = JobState;
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 {
Box::pin(self.perform(state))

View file

@ -23,7 +23,7 @@ impl ActixJob for Listeners {
type State = JobState;
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 {
Box::pin(self.perform(state))