Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
staffik committed Oct 16, 2024
1 parent 4c08bb9 commit 198e73e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/store/src/adapter/trie_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ impl<'a> TrieStoreUpdateAdapter<'a> {
)
}

/// Reads shard_uid mapping for given shard.
/// If the mapping does not exist, it means that `shard_uid` maps to itself.
/// Set the mapping from `child_shard_uid` to `parent_shard_uid`.
/// Used by Resharding V3 for State mapping.
#[cfg(test)]
fn set_shard_uid_mapping(&mut self, child_shard_uid: ShardUId, parent_shard_uid: ShardUId) {
self.store_update.set(
Expand Down Expand Up @@ -289,7 +289,7 @@ mod tests {
store_update.increment_refcount_by(child_shard, &dummy_hash, &[0], ONE);
store_update.commit().unwrap();
}
// The data is not visible at both shards again.
// The data is now visible at both shards again.
assert_eq!(*store.get(child_shard, &dummy_hash).unwrap(), [0]);
assert_eq!(*store.get(parent_shard, &dummy_hash).unwrap(), [0]);
}
Expand Down

0 comments on commit 198e73e

Please sign in to comment.