1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Upgrade to apalis-0.4.0-alpha.5

This commit is contained in:
Quentin Gliech
2023-04-13 16:41:38 +02:00
parent 1974786209
commit 5b4fee15e7
12 changed files with 68 additions and 40 deletions

View File

@@ -14,11 +14,10 @@
use anyhow::Context;
use apalis_core::{
builder::{WorkerBuilder, WorkerFactory},
builder::{WorkerBuilder, WorkerFactory, WorkerFactoryFn},
context::JobContext,
executor::TokioExecutor,
job::Job,
job_fn::job_fn,
monitor::Monitor,
storage::builder::WithStorage,
};
@@ -101,6 +100,6 @@ pub(crate) fn register(
.layer(state.inject())
.layer(TracingLayer::new())
.with_storage(storage)
.build(job_fn(verify_email));
.build_fn(verify_email);
monitor.register(worker)
}