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

Switch to event-listener for in-process job notifications

This commit is contained in:
Quentin Gliech
2023-07-18 10:06:43 +02:00
parent f6d4bfdb76
commit ab00002acd
5 changed files with 28 additions and 27 deletions

View File

@@ -105,7 +105,9 @@ pub(crate) fn register(
.layer(state.inject())
.layer(trace_layer())
.layer(metrics_layer())
.with_storage(storage)
.with_storage_config(storage, |c| {
c.fetch_interval(std::time::Duration::from_secs(1))
})
.build_fn(verify_email);
monitor.register(worker)
}