From cc37475f4a57e89efec4fb229adc1ada7345d25a Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 30 Aug 2024 12:35:58 +0800 Subject: [PATCH] =?UTF-8?q?serve=E6=94=B9=E4=B8=AA=E5=90=8D=E5=AD=97?= =?UTF-8?q?=EF=BC=8C=E5=8F=ABweb=5Fpart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sr_download/src/db_part.rs | 2 +- sr_download/src/main.rs | 4 ++-- sr_download/src/{serve.rs => web_part.rs} | 0 sr_download/src/{serve => web_part}/traits.rs | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename sr_download/src/{serve.rs => web_part.rs} (100%) rename sr_download/src/{serve => web_part}/traits.rs (100%) 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