Skip to content

Commit 5f9c303

Browse files
committed
chore: improve semantics.
1 parent 265f33d commit 5f9c303

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

migration/util/executor-types/src/executor/movement_executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ impl MovementExecutor {
7878
}
7979

8080
/// Iterates over all blocks in the db.
81-
pub fn iter_blocks(&self, version: u64) -> Result<BlockIterator<'_>, anyhow::Error> {
81+
pub fn iter_blocks(&self, start_version: u64) -> Result<BlockIterator<'_>, anyhow::Error> {
8282
let latest_version = self.latest_ledger_version()?;
8383
println!("latest_version: {}", latest_version);
84-
Ok(BlockIterator { executor: self, version, latest_version })
84+
Ok(BlockIterator { executor: self, version: start_version, latest_version })
8585
}
8686

8787
/// Gets the genesis transaction.

0 commit comments

Comments
 (0)