You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Upgrade to apalis-0.4.0-alpha.5
This commit is contained in:
@ -185,7 +185,10 @@ pub trait JobRepositoryExt {
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns [`Self::Error`] if the underlying repository fails
|
||||
async fn schedule_job<J: Job + Serialize>(&mut self, job: J) -> Result<JobId, Self::Error>;
|
||||
async fn schedule_job<J: Job + Serialize + Send>(
|
||||
&mut self,
|
||||
job: J,
|
||||
) -> Result<JobId, Self::Error>;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
@ -202,7 +205,10 @@ where
|
||||
job.name = J::NAME,
|
||||
),
|
||||
)]
|
||||
async fn schedule_job<J: Job + Serialize>(&mut self, job: J) -> Result<JobId, Self::Error> {
|
||||
async fn schedule_job<J: Job + Serialize + Send>(
|
||||
&mut self,
|
||||
job: J,
|
||||
) -> Result<JobId, Self::Error> {
|
||||
let span = tracing::Span::current();
|
||||
let ctx = span.context();
|
||||
let span = ctx.span();
|
||||
|
Reference in New Issue
Block a user