Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Dec 13, 2023
1 parent b73098c commit 06116d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tasks/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ pub async fn index_chain(app: Arc<App>, chain_id: u64) -> eyre::Result<()> {
// Subscribe to new block with the WS client which uses an unbounded receiver, buffering the stream
let mut blocks_stream = ws_rpc.subscribe_blocks().await?;

// Get the first block from the stream, backfilling any missing blocks between the latest block in the db

//TODO: note in the comments that this fills the block
// Get the first block from the stream, backfilling any missing blocks from the latest block in the db to the chain head
if let Some(latest_block) = blocks_stream.next().await {
backfill_to_block(app.clone(), chain_id, &rpc, latest_block)
.await?;
Expand Down

0 comments on commit 06116d8

Please sign in to comment.