Fix #550 : Removed redundant call to connectionPool.getResource() in method getConnectionFromSlot(int slot) in class JedisSlotBasedConnectionHandler
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -9,3 +9,6 @@ target/
|
||||
build/
|
||||
bin/
|
||||
tags
|
||||
.idea
|
||||
*.aof
|
||||
*.rdb
|
||||
|
||||
@@ -40,7 +40,7 @@ public class JedisSlotBasedConnectionHandler extends
|
||||
connectionPool = getRandomConnection();
|
||||
}
|
||||
currentConnection = connectionPool.getResource();
|
||||
return connectionPool.getResource();
|
||||
return currentConnection;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user