mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Don't let ledger fetching go too fast.
This commit is contained in:
@@ -388,7 +388,7 @@ void LedgerMaster::setFullLedger(Ledger::pointer ledger)
|
||||
return;
|
||||
}
|
||||
|
||||
if (theApp->getJobQueue().getJobCount(jtPUBOLDLEDGER) > 2)
|
||||
if (theApp->getJobQueue().getJobCountTotal(jtPUBOLDLEDGER) > 1)
|
||||
{
|
||||
cLog(lsDEBUG) << "Too many pending ledger saves";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user