diff --git a/include/rest_rpc.hpp b/include/rest_rpc.hpp index 31cd532..cd998b6 100644 --- a/include/rest_rpc.hpp +++ b/include/rest_rpc.hpp @@ -1,2 +1,2 @@ -#include "rest_rpc/rpc_client.hpp" -#include "rest_rpc/rpc_server.h" \ No newline at end of file +#include "rest_rpc/rest_rpc_client.hpp" +#include "rest_rpc/rest_rpc_server.h" \ No newline at end of file diff --git a/include/rest_rpc/client.hpp b/include/rest_rpc/rest_rpc_client.hpp similarity index 98% rename from include/rest_rpc/client.hpp rename to include/rest_rpc/rest_rpc_client.hpp index e26ae93..8631561 100644 --- a/include/rest_rpc/client.hpp +++ b/include/rest_rpc/rest_rpc_client.hpp @@ -24,9 +24,9 @@ template <> struct call_result { rpc_errc ec; }; -class client { +class rest_rpc_client { public: - client() : socket_(get_global_executor()) {} + rest_rpc_client() : socket_(get_global_executor()) {} auto get_executor() { return socket_.get_executor(); } diff --git a/tests/bench.cpp b/tests/bench.cpp index 44e3b03..e140de3 100644 --- a/tests/bench.cpp +++ b/tests/bench.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include using namespace rest_rpc; @@ -13,7 +13,7 @@ std::string_view echo_sv(std::string_view str) { return str; } -asio::awaitable bench(std::shared_ptr cl) { +asio::awaitable bench(std::shared_ptr 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> clients; + std::vector> clients; for (int i = 0; i < par; i++) { - clients.push_back(std::make_shared()); + clients.push_back(std::make_shared()); } for (size_t i = 0; i < par; i++) { diff --git a/tests/test_rest_rpc1.cpp b/tests/test_rest_rpc1.cpp index a4a352f..019f6b5 100644 --- a/tests/test_rest_rpc1.cpp +++ b/tests/test_rest_rpc1.cpp @@ -2,7 +2,7 @@ #include "doctest/doctest.h" #include -#include +#include #include #include @@ -192,7 +192,7 @@ TEST_CASE("test server start") { server.set_check_conn_interval(std::chrono::seconds(1)); auto ec = server.async_start(); CHECK(!ec); - client cl; + rest_rpc_client cl; static_assert(util::CharArrayRef); static_assert(util::CharArray);