sui_indexer/backfill/
backfill_task.rs

1
2
3
4
5
6
7
8
9
10
11
12
// 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>);
}