diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 27da278..b2af6de 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ use tokio::net::TcpListener; use tokio_rusqlite::Connection; mod db; +mod jobs; mod model; mod routes; mod templates; @@ -27,6 +28,8 @@ async fn main() -> std::result::Result<(), Box<dyn std::error::Error>> { .await .expect("Error while openning DB conection"); + tokio::spawn(jobs::start(db_conn.clone(), files_dir.clone())); + let addr: SocketAddr = format!("{host}:{port}") .parse() .unwrap_or_else(|_| panic!("Invalid address: {host}:{port}")); |