refactor: move authifier config to database package

This commit is contained in:
Paul Makles
2024-08-31 16:04:40 +01:00
parent c1b92ef56e
commit 5ad72abca7
13 changed files with 124 additions and 82 deletions

View File

@@ -9,12 +9,14 @@ const WORKER_COUNT: usize = 5;
pub mod ack;
pub mod apple_notifications;
pub mod authifier_relay;
pub mod last_message_id;
pub mod process_embeds;
pub mod web_push;
/// Spawn background workers
pub async fn start_workers(db: Database, authifier_db: authifier::Database) {
task::spawn(authifier_relay::worker());
task::spawn(apple_notifications::worker(db.clone()));
for _ in 0..WORKER_COUNT {