Move scheduler to job_queue module

This commit is contained in:
silverpill 2022-12-11 21:06:44 +00:00
parent 7498fc9dba
commit e7d9733f96
4 changed files with 3 additions and 2 deletions

1
src/job_queue/mod.rs Normal file
View file

@ -0,0 +1 @@
pub mod scheduler;

View file

@ -10,12 +10,12 @@ pub mod http;
mod http_signatures;
mod identity;
mod ipfs;
pub mod job_queue;
mod json_signatures;
pub mod logger;
pub mod mastodon_api;
mod models;
mod monero;
pub mod nodeinfo;
pub mod scheduler;
mod utils;
pub mod webfinger;

View file

@ -15,6 +15,7 @@ use mitra::database::{get_database_client, create_pool};
use mitra::database::migrate::apply_migrations;
use mitra::ethereum::contracts::get_contracts;
use mitra::http::json_error_handler;
use mitra::job_queue::scheduler;
use mitra::logger::configure_logger;
use mitra::mastodon_api::accounts::views::account_api_scope;
use mitra::mastodon_api::directory::views::directory_api_scope;
@ -31,7 +32,6 @@ use mitra::mastodon_api::subscriptions::views::subscription_api_scope;
use mitra::mastodon_api::timelines::views::timeline_api_scope;
use mitra::mastodon_api::UPLOAD_MAX_SIZE;
use mitra::nodeinfo::views as nodeinfo;
use mitra::scheduler;
use mitra::webfinger::views as webfinger;
#[actix_web::main]