Move server code into its own module
This commit is contained in:
parent
ad0c1a69cb
commit
45abda2b6d
12 changed files with 15 additions and 4 deletions
|
|
@ -1,10 +1,9 @@
|
|||
mod args;
|
||||
mod config;
|
||||
mod recurring;
|
||||
mod server;
|
||||
mod somehow;
|
||||
mod state;
|
||||
mod util;
|
||||
mod web;
|
||||
|
||||
use std::{io, path::PathBuf, process};
|
||||
|
||||
|
|
@ -105,8 +104,7 @@ async fn run() -> somehow::Result<()> {
|
|||
info!("Startup complete, running");
|
||||
select! {
|
||||
_ = wait_for_signal() => {}
|
||||
_ = web::run(state.clone()) => {}
|
||||
_ = recurring::run(state.clone()) => {}
|
||||
_ = server::run(state.clone()) => {}
|
||||
}
|
||||
|
||||
select! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue