From fa0698202841b6b50d97c6c979cae54f250f5c8c Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Wed, 5 Aug 2026 16:26:20 +0100 Subject: [PATCH] fixed namespace issues Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- src/xrpld/rpc/detail/RpcSpanNames.h | 6 +++--- src/xrpld/rpc/detail/ServerHandler.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xrpld/rpc/detail/RpcSpanNames.h b/src/xrpld/rpc/detail/RpcSpanNames.h index 07202a7592..9faf348257 100644 --- a/src/xrpld/rpc/detail/RpcSpanNames.h +++ b/src/xrpld/rpc/detail/RpcSpanNames.h @@ -32,7 +32,7 @@ * | | | | * | | +---------------------------------------------+ | | * | | | rpc.command.{name} | | | - * | | | RPC::callMethod() | | | + * | | | rpc::callMethod() | | | * | | | attrs: command, version, rpc_role, rpc_status | | | * | | +---------------------------------------------+ | | * | +--------------------------------------------------+ | @@ -60,7 +60,7 @@ * | | * | +--------------------------------------------------+ | * | | rpc.command.{name} | | - * | | RPC::callMethod() | | + * | | rpc::callMethod() | | * | | attrs: command, version, rpc_role, rpc_status | | * | +--------------------------------------------------+ | * +-------------------------------------------------------+ @@ -81,7 +81,7 @@ * * +-------------------------------------------------------+ * | rpc.command.{name} (error: too_busy/unknown/etc) | - * | RPC::doCommand() — fillHandler() rejection | + * | rpc::doCommand() — fillHandler() rejection | * +-------------------------------------------------------+ * * gRPC path (see GrpcSpanNames.h for constants): diff --git a/src/xrpld/rpc/detail/ServerHandler.cpp b/src/xrpld/rpc/detail/ServerHandler.cpp index 335d44b7a1..8e9fffb341 100644 --- a/src/xrpld/rpc/detail/ServerHandler.cpp +++ b/src/xrpld/rpc/detail/ServerHandler.cpp @@ -140,7 +140,7 @@ resolveWsCommandSpanName(json::Value const& jv, Config const& config) return rpc_span::val::unknownCommand; auto const* handler = - RPC::getHandler(RPC::getAPIVersionNumber(jv, config.betaRpcApi), config.betaRpcApi, cmd); + rpc::getHandler(rpc::getAPIVersionNumber(jv, config.betaRpcApi), config.betaRpcApi, cmd); return (handler != nullptr) ? std::string_view{handler->name} : std::string_view{rpc_span::val::unknownCommand}; }