sui_indexer/backfill/backfill_task.rs
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use crate::database::ConnectionPool;
use async_trait::async_trait;
use std::ops::RangeInclusive;
#[async_trait]
pub trait BackfillTask: Send + Sync {
/// Backfill the database for a specific range.
async fn backfill_range(&self, pool: ConnectionPool, range: &RangeInclusive<usize>);
}