pub async fn start_indexer_writer_for_testing(
db_url: String,
snapshot_config: Option<SnapshotLagConfig>,
retention_config: Option<RetentionConfig>,
data_ingestion_path: Option<PathBuf>,
cancel: Option<CancellationToken>,
start_checkpoint: Option<u64>,
end_checkpoint: Option<u64>,
) -> (PgIndexerStore, JoinHandle<Result<(), IndexerError>>, CancellationToken)
Expand description
Wrapper over Indexer::start_writer_with_config
to make it easier to configure an indexer
writer for testing. If the config options are null, default values that have historically worked
for testing will be used.