Skip to content

Commit

Permalink
doc minor refine
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Sep 12, 2024
1 parent 3bb0ff0 commit e650c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/src/hash/consistent_hash/mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl<T: VnodeMappingItem> VnodeMapping<T> {
}

/// Create a vnode mapping with the single item. Should only be used for singletons.
// TODO(var-vnode): make vnode count 1.
// TODO(var-vnode): make vnode count 1, also `Distribution::vnode_count`
pub fn new_single(item: T::Item) -> Self {
Self::new_uniform(std::iter::once(item), VirtualNode::COUNT)
}
Expand Down

0 comments on commit e650c35

Please sign in to comment.