1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Reimplementation of a postgres-backed storage with a shared PG listener

This commit is contained in:
Quentin Gliech
2023-07-17 17:36:37 +02:00
parent 3f17e2215c
commit 68db56c2a2
15 changed files with 540 additions and 95 deletions

View File

@ -110,7 +110,7 @@ impl Options {
config.matrix.secret.clone(),
http_client_factory,
);
let monitor = mas_tasks::init(&worker_name, &pool, &mailer, conn);
let monitor = mas_tasks::init(&worker_name, &pool, &mailer, conn).await?;
// TODO: grab the handle
tokio::spawn(monitor.run());
}

View File

@ -64,7 +64,7 @@ impl Options {
let worker_name = Alphanumeric.sample_string(&mut rng, 10);
info!(worker_name, "Starting task scheduler");
let monitor = mas_tasks::init(&worker_name, &pool, &mailer, conn);
let monitor = mas_tasks::init(&worker_name, &pool, &mailer, conn).await?;
span.exit();