Give jobs better names
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user