lib/mixed_gauge/routing.rb in mixed_gauge-0.2.0 vs lib/mixed_gauge/routing.rb in mixed_gauge-0.2.1

- old
+ new

@@ -8,10 +8,10 @@ end # @param [String] dist_key # @return [String] connection name def route(key) - slot = hash_f(key) % @cluster_config.slot_count + slot = hash_f(key) % @cluster_config.slot_size @cluster_config.fetch(slot) end # @param [String] key # @return [Integer]