Skip to content

Commit

Permalink
refactor: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
karbyshev committed Jul 14, 2023
1 parent 20a110f commit 5483cdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/src/lib/node/ledger/storage/rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ mod test {
)
.unwrap();

write_block(&db, &mut batch, BlockHeight::default()).unwrap();
add_block_to_batch(&db, &mut batch, BlockHeight::default()).unwrap();
db.exec_batch(batch.0).unwrap();

let _state = db
Expand Down Expand Up @@ -1726,7 +1726,7 @@ mod test {
)
.unwrap();

write_block(&db, &mut batch, height_0).unwrap();
add_block_to_batch(&db, &mut batch, height_0).unwrap();
db.exec_batch(batch.0).unwrap();

// Write second block
Expand All @@ -1746,7 +1746,7 @@ mod test {
db.batch_delete_subspace_val(&mut batch, height_1, &delete_key)
.unwrap();

write_block(&db, &mut batch, height_1).unwrap();
add_block_to_batch(&db, &mut batch, height_1).unwrap();
db.exec_batch(batch.0).unwrap();

// Check that the values are as expected from second block
Expand All @@ -1770,7 +1770,7 @@ mod test {
}

/// A test helper to write a block
fn write_block(
fn add_block_to_batch(
db: &RocksDB,
batch: &mut RocksDBWriteBatch,
height: BlockHeight,
Expand Down

0 comments on commit 5483cdc

Please sign in to comment.