update code level
This commit is contained in:
@@ -139,8 +139,6 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
// 创建数据目录
|
||||
fs::create_dir_all(&config.storage.images_dir).unwrap_or(());
|
||||
// 不再创建缩略图目录,因为已移除缩略图功能
|
||||
fs::create_dir_all(&config.database.url[7..]).unwrap_or(());
|
||||
|
||||
// 在闭包外提取需要的路径
|
||||
let server_address = config.server_address();
|
||||
|
||||
Reference in New Issue
Block a user