Skip to content

Commit

Permalink
fix: sled reset should also reset inner temp storage (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhani-cw authored Mar 21, 2024
1 parent a723fd2 commit f7d8fbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/eth/storage/sled/sled_temporary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@ impl TemporaryStorage for SledTemporary {
}

async fn reset(&self) -> anyhow::Result<()> {
// reset temp
let mut temp_lock = self.temp.lock_write().await;
temp_lock.reset();

// reset sled
self.db.clear()?;

Ok(())
}
}
Expand Down

0 comments on commit f7d8fbe

Please sign in to comment.