mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-30 00:50:48 +08:00
rename
This commit is contained in:
+4
-4
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user