From 298c08e80966cfa6f47b4a84cda7492ec2aa99d1 Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Mon, 15 Jan 2024 20:33:41 +0800 Subject: [PATCH] fix --- src/coro_rpc/examples/base_examples/client.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/coro_rpc/examples/base_examples/client.cpp b/src/coro_rpc/examples/base_examples/client.cpp index 8e1ff4482..11ae6e72c 100644 --- a/src/coro_rpc/examples/base_examples/client.cpp +++ b/src/coro_rpc/examples/base_examples/client.cpp @@ -16,6 +16,8 @@ #include #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; @@ -61,7 +63,8 @@ Lazy show_rpc_call() { assert(ret.value() == "HelloService::hello_with_delay"s); ret = co_await client.call(); - assert(ret.error().code == 404); + + assert(ret.error().value() == 404); assert(ret.error().msg == "404 Not Found."); ret = co_await client.call();