Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/server.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | // safely removed once global variable usage has been eliminated. | ||||
} | } | ||||
} | } | ||||
std::string commandName = request.strMethod; | std::string commandName = request.strMethod; | ||||
{ | { | ||||
auto commandsReadView = commands.getReadView(); | auto commandsReadView = commands.getReadView(); | ||||
auto iter = commandsReadView->find(commandName); | auto iter = commandsReadView->find(commandName); | ||||
if (iter != commandsReadView.end()) { | if (iter != commandsReadView.end()) { | ||||
return iter->second.get()->Execute(request.params); | return iter->second.get()->Execute(request); | ||||
} | } | ||||
} | } | ||||
// TODO Remove the below call to tableRPC.execute() and only call it for | // TODO Remove the below call to tableRPC.execute() and only call it for | ||||
// context-free RPC commands via an implementation of RPCCommand. | // context-free RPC commands via an implementation of RPCCommand. | ||||
// Check if context-free RPC method is valid and execute it | // Check if context-free RPC method is valid and execute it | ||||
return tableRPC.execute(config, request); | return tableRPC.execute(config, request); | ||||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |