Skip to content

Commit

Permalink
Fix comment about NoShardingDistributionFunction and NoShardingAlgorithm
Browse files Browse the repository at this point in the history
Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>
  • Loading branch information
akram committed Jan 10, 2024
1 parent 3d902d7 commit 3cf3b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/sharding/sharding.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func RoundRobinDistributionFunction(clusters clusterAccessor, replicas int) Dist
}
}

// NoShardingDistributionFunction returns a DistributionFunction that will process all shards
// NoShardingDistributionFunction returns a DistributionFunction that will process all cluster by shard 0
// the function is created for API compatibility purposes.
func NoShardingDistributionFunction() DistributionFunction {
return func(c *v1alpha1.Cluster) int { return 0 }
Expand Down

0 comments on commit 3cf3b7f

Please sign in to comment.