mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-26 08:30:24 +00:00
clang-format (#86)
* clang-format * ignore clang-format commit; run clang-format in github actions
This commit is contained in:
@@ -23,15 +23,15 @@ doServerInfo(Context const& context)
|
||||
response["info"] = boost::json::object{};
|
||||
boost::json::object& info = response["info"].as_object();
|
||||
|
||||
info["complete_ledgers"] =
|
||||
std::to_string(range->minSequence) + "-" +
|
||||
info["complete_ledgers"] = std::to_string(range->minSequence) + "-" +
|
||||
std::to_string(range->maxSequence);
|
||||
|
||||
info["counters"] = boost::json::object{};
|
||||
info["counters"].as_object()["rpc"] = context.counters.report();
|
||||
}
|
||||
|
||||
auto serverInfoRippled = context.balancer->forwardToRippled(context.params, context.clientIp);
|
||||
auto serverInfoRippled =
|
||||
context.balancer->forwardToRippled(context.params, context.clientIp);
|
||||
if (serverInfoRippled && !serverInfoRippled->contains("error"))
|
||||
response["info"].as_object()["load_factor"] = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user