mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
22 lines
494 B
C++
22 lines
494 B
C++
#pragma once
|
|
|
|
#include <xrpl/nodestore/Scheduler.h>
|
|
|
|
namespace xrpl::NodeStore {
|
|
|
|
/** Simple NodeStore Scheduler that just performs the tasks synchronously. */
|
|
class DummyScheduler : public Scheduler
|
|
{
|
|
public:
|
|
DummyScheduler() = default;
|
|
~DummyScheduler() override = default;
|
|
void
|
|
scheduleTask(Task& task) override;
|
|
void
|
|
onFetch(FetchReport const& report) override;
|
|
void
|
|
onBatchWrite(BatchWriteReport const& report) override;
|
|
};
|
|
|
|
} // namespace xrpl::NodeStore
|