Implement unique taging of incoming requests (#311)

Fixes #212
This commit is contained in:
Alex Kremer
2022-09-29 22:56:29 +02:00
committed by GitHub
parent db2b9dac3b
commit 744af4b639
18 changed files with 506 additions and 55 deletions

View File

@@ -26,7 +26,7 @@ std::optional<LedgerRange>
BackendInterface::hardFetchLedgerRangeNoThrow(
boost::asio::yield_context& yield) const
{
BOOST_LOG_TRIVIAL(debug) << __func__;
BOOST_LOG_TRIVIAL(trace) << __func__ << "(yield)";
while (true)
{
try
@@ -43,7 +43,7 @@ BackendInterface::hardFetchLedgerRangeNoThrow(
std::optional<LedgerRange>
BackendInterface::hardFetchLedgerRangeNoThrow() const
{
BOOST_LOG_TRIVIAL(debug) << __func__;
BOOST_LOG_TRIVIAL(trace) << __func__ << "()";
return retryOnTimeout([&]() { return hardFetchLedgerRange(); });
}