This commit is contained in:
qicosmos
2025-10-07 17:23:53 +08:00
parent 146b1e9c7c
commit 25fecab3de
4 changed files with 24 additions and 15 deletions
+3 -1
View File
@@ -6,9 +6,11 @@ include_directories(
"../thirdparty/asio"
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")
add_executable(test_rest_rpc test_rest_rpc.cpp)
add_test(NAME ${project_name} COMMAND test_rest_rpc)
#add_test(NAME test_rpc COMMAND test_rpc)
add_executable(bench bench.cpp)
+1 -1
View File
@@ -97,7 +97,7 @@ asio::awaitable<std::string> no_arg_coro1() {
co_return "test";
}
// TODO: client pool, pub/sub
// TODO: client pool
asio::awaitable<void> test_router() {
rpc_router router;
router.register_handler<add>();