Skip to content

Commit

Permalink
fix: use Range implementation
Browse files Browse the repository at this point in the history
Co-authored-by: Ammar Arif <[email protected]>
  • Loading branch information
glihm and kariy authored Apr 22, 2024
1 parent 15e63d7 commit 010a151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/katana/storage/provider/src/providers/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ impl TransactionTraceProvider for DbProvider {
let db_tx = self.0.tx()?;
let mut executions = Vec::with_capacity(indices.tx_count as usize);

let range = indices.tx_offset..indices.tx_offset + indices.tx_count;
let range = Range::from(indices);
for i in range {
if let Some(execution) = db_tx.get::<tables::TxTraces>(i)? {
executions.push(execution);
Expand Down

0 comments on commit 010a151

Please sign in to comment.