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