Skip to content

Commit 6628b5f

Browse files
committed
partitioner.rs: un-pub calculate_token_for_partition_key
This function operates on SerializedValues, and so is not type-safe. Given that we already provide token-calculation API on PreparedStatement and ClusterState, exposing this method seems redundant. If it turns out that there are users who need this method and can't use existing APIs then we can think about providing appropriate safe API, or making this pub once again as a last resort.
1 parent 4bb382f commit 6628b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla/src/routing/partitioner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl PartitionerHasher for CDCPartitionerHasher {
349349
///
350350
/// NOTE: the provided values must completely constitute partition key
351351
/// and be in the order defined in CREATE TABLE statement.
352-
pub fn calculate_token_for_partition_key(
352+
pub(crate) fn calculate_token_for_partition_key(
353353
serialized_partition_key_values: &SerializedValues,
354354
partitioner: &PartitionerName,
355355
) -> Result<Token, TokenCalculationError> {

0 commit comments

Comments
 (0)