Skip to content
Snippets Groups Projects
Verified Commit 5fedbe20 authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

scord-ctl: Put RPC handlers in correct namespace

parent a027efbe
No related branches found
No related tags found
1 merge request!92Resolve "Adhoc storage deployment needs to be executed by `scord-ctl` instead of `scord`"
......@@ -34,7 +34,7 @@ struct remote_procedure {
}
};
namespace scord::network::handlers {
namespace scord_ctl::network::handlers {
void
ping(const scord::network::request& req) {
......@@ -59,4 +59,4 @@ ping(const scord::network::request& req) {
req.respond(resp);
}
} // namespace scord::network::handlers
} // namespace scord_ctl::network::handlers
......@@ -29,11 +29,11 @@
#include <net/serialization.hpp>
#include <scord/types.hpp>
namespace scord::network::handlers {
namespace scord_ctl::network::handlers {
void
ping(const scord::network::request& req);
} // namespace scord::network::handlers
} // namespace scord_ctl::network::handlers
#endif // SCORD_CTL_RPC_HANDLERS_HPP
......@@ -85,7 +85,8 @@ main(int argc, char* argv[]) {
// convenience macro to ensure the names of an RPC and its handler
// always match
#define EXPAND(rpc_name) "ADM_" #rpc_name##s, scord::network::handlers::rpc_name
#define EXPAND(rpc_name) \
"ADM_" #rpc_name##s, scord_ctl::network::handlers::rpc_name
srv.set_handler(EXPAND(ping));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment