From afd6c35b0045b04eaf1294414be01d0d99b32805 Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Tue, 14 Jul 2026 11:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E8=A7=84=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/Local_Server/server/Global.cpp | 2 +- module/Local_Server/server/With_Loop_Coro.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Local_Server/server/Global.cpp b/module/Local_Server/server/Global.cpp index f82b237..b1857c2 100644 --- a/module/Local_Server/server/Global.cpp +++ b/module/Local_Server/server/Global.cpp @@ -335,7 +335,7 @@ bool Web_Server::listen(std::string_view host, int port) { app->addListener(std::string(host), port); auto base_dir = get_exe_dir(); // app->setLogPath(base_dir + "/logs/drogon.log"); - app->setUploadPath(base_dir + "/drogon_uploads"); + app->setUploadPath(base_dir + "/../drogon_uploads"); app->run(); return true; } diff --git a/module/Local_Server/server/With_Loop_Coro.h b/module/Local_Server/server/With_Loop_Coro.h index cf9ea26..fc563c8 100644 --- a/module/Local_Server/server/With_Loop_Coro.h +++ b/module/Local_Server/server/With_Loop_Coro.h @@ -28,7 +28,7 @@ public: virtual asio::awaitable loop_coro() = 0; void async_stop(); void sync_wait(); - bool running() const; + [[nodiscard]] bool running() const; asio::awaitable tick(); virtual asio::awaitable _open() = 0; virtual asio::awaitable _close() = 0;