This commit is contained in:
qicosmos
2025-10-01 20:18:18 +08:00
parent 21d9551aea
commit 139a8144a8
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
#include <iostream>
#include <rest_rpc/client.hpp>
#include <rest_rpc/rest_rpc_client.hpp>
#include <rest_rpc/rest_rpc_server.hpp>
using namespace rest_rpc;
@@ -13,7 +13,7 @@ std::string_view echo_sv(std::string_view str) {
return str;
}
asio::awaitable<void> bench(std::shared_ptr<client> cl) {
asio::awaitable<void> bench(std::shared_ptr<rest_rpc_client> cl) {
co_await cl->connect(address);
std::string_view str = "it is a test";
while (true) {
@@ -43,9 +43,9 @@ int main(int argc, char **argv) {
auto arg = argv[1];
int par = atoi(arg);
std::vector<std::shared_ptr<client>> clients;
std::vector<std::shared_ptr<rest_rpc_client>> clients;
for (int i = 0; i < par; i++) {
clients.push_back(std::make_shared<client>());
clients.push_back(std::make_shared<rest_rpc_client>());
}
for (size_t i = 0; i < par; i++) {