Subscribe/Unsubscribe RPC handlers (#2)

Subscribe to ledgers, transactions and accounts
This commit is contained in:
Nathan Nichols
2021-05-18 08:06:46 -07:00
committed by GitHub
parent c39a0a001d
commit 8ee213f6bc
5 changed files with 557 additions and 5 deletions

View File

@@ -329,6 +329,7 @@ ReportingETL::runETLPipeline(uint32_t startSequence, int numExtractors)
{
if (finishSequence_ && startSequence > *finishSequence_)
return {};
/*
* Behold, mortals! This function spawns three separate threads, which talk
* to each other via 2 different thread safe queues and 1 atomic variable.
@@ -386,7 +387,6 @@ ReportingETL::runETLPipeline(uint32_t startSequence, int numExtractors)
{
auto transformQueue = std::make_shared<QueueType>(maxQueueSize);
queues.push_back(transformQueue);
std::cout << "added to queues";
extractors.emplace_back([this,
&startSequence,