Skip to content

Commit

Permalink
chore: code
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Mar 8, 2024
1 parent 6a44b40 commit f049d6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/torii/core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl<'db, P: Provider + Sync + Send> Engine<'db, P> {
Ok(latest_block_number)
}

pub async fn sync_range(&mut self, mut from: u64, to: u64) -> Result<()> {
pub async fn sync_range(&mut self, from: u64, to: u64) -> Result<()> {
// Process all blocks from current to latest.
let get_event = |token: Option<String>| {
self.provider.get_events(
Expand Down Expand Up @@ -149,6 +149,8 @@ impl<'db, P: Provider + Sync + Send> Engine<'db, P> {
}
}

self.db.execute().await?;

Ok(())
}

Expand Down

0 comments on commit f049d6f

Please sign in to comment.