mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
PathRequests object to own all path requests.
This commit is contained in:
@@ -45,6 +45,8 @@ class LoadManagerLog;
|
||||
template <> char const* LogPartition::getPartitionName <LoadManagerLog> () { return "LoadManager"; }
|
||||
class ResourceManagerLog;
|
||||
template <> char const* LogPartition::getPartitionName <ResourceManagerLog> () { return "ResourceManager"; }
|
||||
class PathRequestLog;
|
||||
template <> char const* LogPartition::getPartitionName <PathRequestLog> () { return "PathRequest"; }
|
||||
|
||||
template <> char const* LogPartition::getPartitionName <CollectorManager> () { return "Collector"; }
|
||||
|
||||
@@ -118,6 +120,9 @@ public:
|
||||
|
||||
, m_orderBookDB (*m_jobQueue)
|
||||
|
||||
, m_pathRequests ( new PathRequests (
|
||||
LogPartition::getJournal <PathRequestLog> (), m_collectorManager->collector ()))
|
||||
|
||||
, m_ledgerMaster (LedgerMaster::New (
|
||||
*m_jobQueue, LogPartition::getJournal <LedgerMaster> ()))
|
||||
|
||||
@@ -270,6 +275,11 @@ public:
|
||||
return m_orderBookDB;
|
||||
}
|
||||
|
||||
PathRequests& getPathRequests ()
|
||||
{
|
||||
return *m_pathRequests;
|
||||
}
|
||||
|
||||
SLECache& getSLECache ()
|
||||
{
|
||||
return m_sleCache;
|
||||
@@ -918,6 +928,7 @@ private:
|
||||
std::unique_ptr <SiteFiles::Manager> m_siteFiles;
|
||||
// VFALCO TODO Make OrderBookDB abstract
|
||||
OrderBookDB m_orderBookDB;
|
||||
std::unique_ptr <PathRequests> m_pathRequests;
|
||||
std::unique_ptr <LedgerMaster> m_ledgerMaster;
|
||||
std::unique_ptr <NetworkOPs> m_networkOPs;
|
||||
std::unique_ptr <UniqueNodeList> m_deprecatedUNL;
|
||||
|
||||
Reference in New Issue
Block a user