Fix #550 : Removed redundant call to connectionPool.getResource() in method getConnectionFromSlot(int slot) in class JedisSlotBasedConnectionHandler

This commit is contained in:
Mayank Dang
2014-02-17 16:52:19 +05:30
parent b2fa6b6c40
commit c4fb2b4adc
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@@ -9,3 +9,6 @@ target/
build/ build/
bin/ bin/
tags tags
.idea
*.aof
*.rdb

View File

@@ -40,7 +40,7 @@ public class JedisSlotBasedConnectionHandler extends
connectionPool = getRandomConnection(); connectionPool = getRandomConnection();
} }
currentConnection = connectionPool.getResource(); currentConnection = connectionPool.getResource();
return connectionPool.getResource(); return currentConnection;
} }
} }