Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Jan 15, 2024
1 parent 330bc44 commit 298c08e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/coro_rpc/examples/base_examples/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <ylt/coro_rpc/coro_rpc_client.hpp>

#include "rpc_service.h"
#include "ylt/coro_rpc/impl/errno.h"
#include "ylt/coro_rpc/impl/protocol/coro_rpc_protocol.hpp"
using namespace coro_rpc;
using namespace async_simple::coro;
using namespace std::string_literals;
Expand Down Expand Up @@ -61,7 +63,8 @@ Lazy<void> show_rpc_call() {
assert(ret.value() == "HelloService::hello_with_delay"s);

ret = co_await client.call<return_error>();
assert(ret.error().code == 404);

assert(ret.error().value() == 404);
assert(ret.error().msg == "404 Not Found.");

ret = co_await client.call<rpc_with_state_by_tag>();
Expand Down

0 comments on commit 298c08e

Please sign in to comment.