1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Bump Rust dependencies

This commit is contained in:
Quentin Gliech
2023-05-25 17:46:44 +02:00
parent d2d68e9a27
commit 1993f4cfca
28 changed files with 664 additions and 739 deletions

View File

@ -6,10 +6,10 @@ edition = "2021"
license = "apache-2.0"
[dependencies]
anyhow = "1.0.70"
apalis-core = { version = "=0.4.0-alpha.5", features = ["extensions", "tokio-comp"] }
apalis-cron = "=0.4.0-alpha.5"
apalis-sql = { version = "=0.4.0-alpha.5", features = ["postgres", "tokio-comp"] }
anyhow = "1.0.71"
apalis-core = { version = "=0.4.0", features = ["extensions", "tokio-comp"] }
apalis-cron = "=0.4.0"
apalis-sql = { version = "=0.4.0", features = ["postgres", "tokio-comp"] }
async-trait = "0.1.68"
chrono = "0.4.24"
rand = "0.8.5"
@ -22,7 +22,7 @@ tracing-opentelemetry = "0.19.0"
opentelemetry = "0.19.0"
ulid = "1.0.0"
url = "2.3.1"
serde = { version = "1.0.160", features = ["derive"] }
serde = { version = "1.0.163", features = ["derive"] }
mas-axum-utils = { path = "../axum-utils" }
mas-data-model = { path = "../data-model" }

View File

@ -22,6 +22,7 @@ use apalis_core::{
executor::TokioExecutor,
job::Job,
monitor::Monitor,
utils::timer::TokioTimer,
};
use apalis_cron::CronStream;
use chrono::{DateTime, Utc};
@ -75,7 +76,7 @@ pub(crate) fn register(
let schedule = apalis_cron::Schedule::from_str("*/15 * * * * *").unwrap();
let worker_name = format!("{job}-{suffix}", job = CleanupExpiredTokensJob::NAME);
let worker = WorkerBuilder::new(worker_name)
.stream(CronStream::new(schedule).to_stream())
.stream(CronStream::new(schedule).timer(TokioTimer).to_stream())
.layer(state.inject())
.layer(metrics_layer::<CleanupExpiredTokensJob>())
.build_fn(cleanup_expired_tokens);