mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-30 10:30:19 +00:00
@@ -3,9 +3,11 @@
|
||||
|
||||
#include <backend/BackendInterface.h>
|
||||
#include <config/Config.h>
|
||||
#include <memory>
|
||||
#include <log/Logger.h>
|
||||
#include <subscriptions/Message.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
class WsBase;
|
||||
|
||||
class Subscription
|
||||
@@ -87,6 +89,7 @@ public:
|
||||
class SubscriptionManager
|
||||
{
|
||||
using session_ptr = std::shared_ptr<WsBase>;
|
||||
clio::Logger log_{"Subscriptions"};
|
||||
|
||||
std::vector<std::thread> workers_;
|
||||
boost::asio::io_context ioc_;
|
||||
@@ -134,8 +137,8 @@ public:
|
||||
// We will eventually want to clamp this to be the number of strands,
|
||||
// since adding more threads than we have strands won't see any
|
||||
// performance benefits
|
||||
BOOST_LOG_TRIVIAL(info) << "Starting subscription manager with "
|
||||
<< numThreads << " workers";
|
||||
log_.info() << "Starting subscription manager with " << numThreads
|
||||
<< " workers";
|
||||
|
||||
workers_.reserve(numThreads);
|
||||
for (auto i = numThreads; i > 0; --i)
|
||||
|
||||
Reference in New Issue
Block a user