Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
longbowlu committed Sep 8, 2024
1 parent 6eccfd5 commit dd0ff09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/sui-bridge-indexer/src/sui_datasource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ impl Datasource<CheckpointTxnData> for SuiCheckpointDatasource {
exit_checkpoint: task.target_checkpoint,
exit_sender: Some(exit_sender),
};
// Live task uses smaller number to be cost effective
// The max concurrnecy of checkpoint to fetch at the same time for ingestion framework
let ingestion_reader_batch_size = if task.is_live_task {
// Live task uses smaller number to be cost effective
LIVE_TASK_INGESTION_READER_BATCH_SIZE
} else {
std::env::var("BACKFILL_TASK_INGESTION_READER_BATCH_SIZE")
Expand Down

0 comments on commit dd0ff09

Please sign in to comment.