From e0fc4b876f6421cd50be160e95c4ad1f8b9f6f3d Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Thu, 23 May 2024 19:22:59 +0800 Subject: [PATCH] fix code --- cmake/config.cmake | 2 +- src/coro_rpc/examples/base_examples/server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/config.cmake b/cmake/config.cmake index f1e2e97f2..aad156ae2 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -1,5 +1,5 @@ message(STATUS "-------------YLT CONFIG SETTING-------------") -option(YLT_ENABLE_SSL "Enable ssl support" ON) +option(YLT_ENABLE_SSL "Enable ssl support" OFF) message(STATUS "YLT_ENABLE_SSL: ${YLT_ENABLE_SSL}") if (YLT_ENABLE_SSL) find_package(OpenSSL REQUIRED) diff --git a/src/coro_rpc/examples/base_examples/server.cpp b/src/coro_rpc/examples/base_examples/server.cpp index c7afd710a..6c9c3e02f 100644 --- a/src/coro_rpc/examples/base_examples/server.cpp +++ b/src/coro_rpc/examples/base_examples/server.cpp @@ -39,7 +39,7 @@ int main() { server2.register_handler(); // async start server auto res = server2.async_start(); - assert(res.has_value()); + assert(!res.hasResult()); // sync start server & sync await server stop return !server.start();