Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Jul 10, 2023
1 parent e85014f commit 03090fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/ylt/coro_rpc/impl/coro_rpc_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ class coro_rpc_client {
friend class coro_io::client_pool;

private:
// the const char * will convert to bool instead of std::string_view
// use this struct to prevent it.
struct is_reconnect_t {
bool value = false;
};
Expand Down
2 changes: 1 addition & 1 deletion src/coro_rpc/tests/test_coro_rpc_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ TEST_CASE("testing client sync connect, unit test inject only") {
server.async_start().start([](auto&&) {
});
CHECK_MESSAGE(server.wait_for_start(3s), "server start timeout");
coro_rpc_client client2(g_client_id++);
coro_rpc_client client2(*coro_io::get_global_executor(), g_client_id++);
bool ok = client2.init_ssl("../openssl_files", "server.crt");
CHECK(ok == true);
val = client2.sync_connect("127.0.0.1", "8801");
Expand Down

0 comments on commit 03090fe

Please sign in to comment.