Regularize RPC handling.

This commit is contained in:
Arthur Britto
2012-12-02 16:05:45 -08:00
parent e737dd16c5
commit fed1250218
4 changed files with 51 additions and 20 deletions

View File

@@ -145,7 +145,7 @@ std::string RPCServer::handleRequest(const std::string& requestStr)
RPCHandler mRPCHandler(mNetOps);
cLog(lsTRACE) << valParams;
Json::Value result = mRPCHandler.doCommand(strMethod, valParams, mRole);
Json::Value result = mRPCHandler.doRpcCommand(strMethod, valParams, mRole);
cLog(lsTRACE) << result;
std::string strReply = JSONRPCReply(result, Json::Value(), id);