mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
perf: Pass const reference Input into handlers (#2409)
Fix https://github.com/XRPLF/clio/issues/2265 --------- Co-authored-by: Sergey Kuznetsov <skuznetsov@ripple.com>
This commit is contained in:
@@ -81,7 +81,7 @@ AccountChannelsHandler::addChannel(std::vector<ChannelResponse>& jsonChannels, r
|
||||
}
|
||||
|
||||
AccountChannelsHandler::Result
|
||||
AccountChannelsHandler::process(AccountChannelsHandler::Input input, Context const& ctx) const
|
||||
AccountChannelsHandler::process(AccountChannelsHandler::Input const& input, Context const& ctx) const
|
||||
{
|
||||
auto const range = sharedPtrBackend_->fetchLedgerRange();
|
||||
ASSERT(range.has_value(), "AccountChannel's ledger range must be available");
|
||||
|
||||
Reference in New Issue
Block a user