mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use lambdas everywhere in JobQueue.
Conflicts: src/ripple/app/ledger/impl/LedgerConsensusImp.cpp
This commit is contained in:
committed by
Nik Bougalis
parent
a6f866b4d8
commit
c1f50ca7b3
@@ -997,13 +997,11 @@ public:
|
||||
getApp().signalStop ();
|
||||
}
|
||||
|
||||
m_jobQueue->addJob(jtSWEEP, "sweep",
|
||||
std::bind(&ApplicationImp::doSweep, this,
|
||||
std::placeholders::_1));
|
||||
m_jobQueue->addJob(jtSWEEP, "sweep", [this] (Job&) { doSweep(); });
|
||||
}
|
||||
}
|
||||
|
||||
void doSweep (Job& j)
|
||||
void doSweep ()
|
||||
{
|
||||
// VFALCO NOTE Does the order of calls matter?
|
||||
// VFALCO TODO fix the dependency inversion using an observer,
|
||||
|
||||
Reference in New Issue
Block a user