mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-15 09:15:51 +00:00
@@ -131,7 +131,7 @@ ETLService::monitor()
|
|||||||
LOG(log_.debug()) << "Database is populated. "
|
LOG(log_.debug()) << "Database is populated. "
|
||||||
<< "Starting monitor loop. sequence = " << nextSequence;
|
<< "Starting monitor loop. sequence = " << nextSequence;
|
||||||
|
|
||||||
while (true) {
|
while (not isStopping()) {
|
||||||
nextSequence = publishNextSequence(nextSequence);
|
nextSequence = publishNextSequence(nextSequence);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -199,7 +199,7 @@ ETLService::monitorReadOnly()
|
|||||||
cacheLoader_.load(latestSequence);
|
cacheLoader_.load(latestSequence);
|
||||||
latestSequence++;
|
latestSequence++;
|
||||||
|
|
||||||
while (true) {
|
while (not isStopping()) {
|
||||||
if (auto rng = backend_->hardFetchLedgerRangeNoThrow(); rng && rng->maxSequence >= latestSequence) {
|
if (auto rng = backend_->hardFetchLedgerRangeNoThrow(); rng && rng->maxSequence >= latestSequence) {
|
||||||
ledgerPublisher_.publish(latestSequence, {});
|
ledgerPublisher_.publish(latestSequence, {});
|
||||||
latestSequence = latestSequence + 1;
|
latestSequence = latestSequence + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user