Skip to content

Commit

Permalink
Correct variable name typos in db_storage.rs** (#3280)
Browse files Browse the repository at this point in the history
- Renamed `latest_epoches` → `latest_epochs` for proper pluralization.

Signed-off-by: Tristav <124001124+Pricstas@users.noreply.github.com>
  • Loading branch information
Pricstas authored Feb 8, 2025
1 parent 61a7c46 commit c6ee223
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linera-storage/src/db_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ where
.store
.read_multi_values::<BlobState>(blob_state_keys)
.await?;
let mut latest_epoches = Vec::new();
let mut latest_epochs = Vec::new();
let mut batch = Batch::new();
let mut need_write = false;
for (maybe_blob_state, blob_id) in maybe_blob_states.iter().zip(blob_ids) {
Expand All @@ -634,12 +634,12 @@ where
batch.add_blob_state(*blob_id, &blob_state)?;
need_write = true;
}
latest_epoches.push(latest_epoch);
latest_epochs.push(latest_epoch);
}
if need_write {
self.write_batch(batch).await?;
}
Ok(latest_epoches)
Ok(latest_epochs)
}

async fn write_blob_state(
Expand Down

0 comments on commit c6ee223

Please # to comment.