mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
specify [min, default, max] limits in handler table (#135)
* specify rpc limits in the handler table * special case in ledger_data if !binary
This commit is contained in:
@@ -70,8 +70,8 @@ doAccountChannels(Context const& context)
|
||||
status)
|
||||
return status;
|
||||
|
||||
std::uint32_t limit = 200;
|
||||
if (auto const status = getLimit(request, limit); status)
|
||||
std::uint32_t limit;
|
||||
if (auto const status = getLimit(context, limit); status)
|
||||
return status;
|
||||
|
||||
std::optional<std::string> marker = {};
|
||||
@@ -93,11 +93,6 @@ doAccountChannels(Context const& context)
|
||||
(!destAccount ||
|
||||
destAccount == sle.getAccountID(ripple::sfDestination)))
|
||||
{
|
||||
if (limit-- == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
addChannel(jsonChannels, sle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user