Skip to content

Commit

Permalink
remove multistore note
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Mar 28, 2024
1 parent 26af544 commit 6b9556b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/cnidarium/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl Storage {
}

/// Prepares a commit for the provided [`StateDelta`], returning a [`StagedWriteBatch`].
/// The batch can be committed to the database using the [`Storage::commit`] method.
/// The batch can be committed to the database using the [`Storage::commit_batch`] method.
pub async fn prepare_commit(&self, delta: StateDelta<Snapshot>) -> Result<StagedWriteBatch> {
// Extract the snapshot and the changes from the state delta
let (snapshot, changes) = delta.flatten();
Expand Down Expand Up @@ -529,10 +529,6 @@ impl Storage {
for (config, new_version) in &multistore_versions.substores {
if config.prefix.is_empty() {
// this is the main store, ignore
// TODO: is the main store supposed to be stored in `multistore_versions`?
// the previous `commit` implementation did set the main store version
// in `multistore_versions`, but that seems unnecessary as the main store
// version is already stored in the snapshot.
continue;
}

Expand Down

0 comments on commit 6b9556b

Please sign in to comment.