serve改个名字,叫web_part
This commit is contained in:
parent
cebaa3caee
commit
cc37475f4a
@ -3,7 +3,7 @@ use sea_orm::{
|
|||||||
ActiveModelTrait, ColumnTrait, ConnectionTrait, DatabaseConnection, EntityTrait,
|
ActiveModelTrait, ColumnTrait, ConnectionTrait, DatabaseConnection, EntityTrait,
|
||||||
IntoActiveModel, ModelTrait, QueryFilter, QuerySelect, Statement, TransactionTrait,
|
IntoActiveModel, ModelTrait, QueryFilter, QuerySelect, Statement, TransactionTrait,
|
||||||
};
|
};
|
||||||
use tracing::{event, Level};
|
// use tracing::{event, Level};
|
||||||
|
|
||||||
use crate::model;
|
use crate::model;
|
||||||
use crate::model::sea_orm_active_enums::SaveType;
|
use crate::model::sea_orm_active_enums::SaveType;
|
||||||
|
@ -9,7 +9,7 @@ mod db_part;
|
|||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
mod model;
|
mod model;
|
||||||
mod net;
|
mod net;
|
||||||
mod serve;
|
mod web_part;
|
||||||
|
|
||||||
use crate::db_part::CoverStrategy;
|
use crate::db_part::CoverStrategy;
|
||||||
use migration::SaveId;
|
use migration::SaveId;
|
||||||
@ -89,7 +89,7 @@ async fn serve_mode(mut stop_receiver: Receiver<()>) -> anyhow::Result<()> {
|
|||||||
|
|
||||||
let mut web_waiter = None;
|
let mut web_waiter = None;
|
||||||
if conf.serve.enable {
|
if conf.serve.enable {
|
||||||
web_waiter = Some(tokio::spawn(serve::web_main()));
|
web_waiter = Some(tokio::spawn(web_part::web_main()));
|
||||||
}
|
}
|
||||||
|
|
||||||
event!(
|
event!(
|
||||||
|
Loading…
Reference in New Issue
Block a user