Skip to content

Commit

Permalink
Polishing after merge #118
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Aug 30, 2015
1 parent e144da0 commit e2f619a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.lambdaworks.redis.cluster;

import static com.google.common.base.Preconditions.checkArgument;
import static com.lambdaworks.redis.cluster.SlotHash.getSlot;

import java.util.List;

Expand Down Expand Up @@ -81,7 +82,7 @@ public <T, C extends RedisCommand<K, V, T>> C write(C command) {
}

if (channelWriter == null && args != null && args.getFirstEncodedKey() != null) {
int hash = getHash(args.getEncodedKey(0));
int hash = getSlot(args.getFirstEncodedKey());
ClusterConnectionProvider.Intent intent = getIntent(command.getType());

RedisChannelHandler<K, V> connection = (RedisChannelHandler<K, V>) clusterConnectionProvider.getConnection(intent,
Expand Down

0 comments on commit e2f619a

Please sign in to comment.