mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
moved warnings array out of result JSON (#208)
This commit is contained in:
@@ -424,7 +424,7 @@ handle_request(
|
||||
auto lastCloseAge = context->etl->lastCloseAgeSeconds();
|
||||
if (lastCloseAge >= 60)
|
||||
warnings.emplace_back("This server may be out of date");
|
||||
result["warnings"] = warnings;
|
||||
response["warnings"] = warnings;
|
||||
responseStr = boost::json::serialize(response);
|
||||
if (!dosGuard.add(ip, responseStr.size()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user