update code level

This commit is contained in:
lychang
2026-05-13 21:08:04 +08:00
parent b5df61c78a
commit 8f214b587b
5 changed files with 9 additions and 28 deletions

View File

@@ -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();