Skip to content

Commit

Permalink
Merge branch 'refact_struct_pb' of https://github.com/qicosmos/yalant…
Browse files Browse the repository at this point in the history
…inglibs into refact_struct_pb
  • Loading branch information
qicosmos committed May 28, 2024
2 parents 21b217f + 0ce8d9a commit 8fb4a77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website/docs/en/coro_rpc/coro_rpc_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ using namespace coro_rpc;
using namespace async_simple::coro;
Lazy<void> rpc_call(coro_rpc_client& cli) {
assert(co_await cli.call<echo<int>>(42).value() == 42);
assert(co_await cli.call<echo<int>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<int>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
assert(co_await cli.call<echo<std::string>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<std::vector<int>>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
}
```
4 changes: 2 additions & 2 deletions website/docs/zh/coro_rpc/coro_rpc_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ using namespace coro_rpc;
using namespace async_simple::coro;
Lazy<void> rpc_call(coro_rpc_client& cli) {
assert(co_await cli.call<echo<int>>(42).value() == 42);
assert(co_await cli.call<echo<int>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<int>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
assert(co_await cli.call<echo<std::string>>("Hello").value() == "Hello");
assert(co_await cli.call<echo<std::vector<int>>>(std::vector{1,2,3}).value() == std::vector{1,2,3});
}
```

0 comments on commit 8fb4a77

Please sign in to comment.