mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-29 18:10:30 +00:00
chore: Enable more clang-tidy checks (#3054)
This commit is contained in:
@@ -278,7 +278,7 @@ LoadBalancer::forwardToRippled(
|
||||
if (forwardingCache_) {
|
||||
if (auto cachedResponse = forwardingCache_->get(cmd); cachedResponse) {
|
||||
forwardingCounters_.cacheHit.get() += 1;
|
||||
return std::move(cachedResponse).value();
|
||||
return *std::move(cachedResponse);
|
||||
}
|
||||
}
|
||||
forwardingCounters_.cacheMiss.get() += 1;
|
||||
@@ -312,7 +312,7 @@ LoadBalancer::forwardToRippled(
|
||||
if (response) {
|
||||
if (forwardingCache_ and not response->contains("error"))
|
||||
forwardingCache_->put(cmd, *response);
|
||||
return std::move(response).value();
|
||||
return *std::move(response);
|
||||
}
|
||||
|
||||
return std::unexpected{error};
|
||||
|
||||
Reference in New Issue
Block a user