diff --git a/sr_download/src/db_part.rs b/sr_download/src/db_part.rs index b3ea63b..e83fe5b 100644 --- a/sr_download/src/db_part.rs +++ b/sr_download/src/db_part.rs @@ -3,7 +3,7 @@ use sea_orm::{ ActiveModelTrait, ColumnTrait, ConnectionTrait, DatabaseConnection, EntityTrait, IntoActiveModel, ModelTrait, QueryFilter, QuerySelect, Statement, TransactionTrait, }; -use tracing::{event, Level}; +// use tracing::{event, Level}; use crate::model; use crate::model::sea_orm_active_enums::SaveType; diff --git a/sr_download/src/main.rs b/sr_download/src/main.rs index ce3efec..875fcc5 100644 --- a/sr_download/src/main.rs +++ b/sr_download/src/main.rs @@ -9,7 +9,7 @@ mod db_part; #[allow(unused)] mod model; mod net; -mod serve; +mod web_part; use crate::db_part::CoverStrategy; use migration::SaveId; @@ -89,7 +89,7 @@ async fn serve_mode(mut stop_receiver: Receiver<()>) -> anyhow::Result<()> { let mut web_waiter = None; if conf.serve.enable { - web_waiter = Some(tokio::spawn(serve::web_main())); + web_waiter = Some(tokio::spawn(web_part::web_main())); } event!( diff --git a/sr_download/src/serve.rs b/sr_download/src/web_part.rs similarity index 100% rename from sr_download/src/serve.rs rename to sr_download/src/web_part.rs diff --git a/sr_download/src/serve/traits.rs b/sr_download/src/web_part/traits.rs similarity index 100% rename from sr_download/src/serve/traits.rs rename to sr_download/src/web_part/traits.rs