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/
|
build/
|
||||||
bin/
|
bin/
|
||||||
tags
|
tags
|
||||||
|
.idea
|
||||||
|
*.aof
|
||||||
|
*.rdb
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public class JedisSlotBasedConnectionHandler extends
|
|||||||
connectionPool = getRandomConnection();
|
connectionPool = getRandomConnection();
|
||||||
}
|
}
|
||||||
currentConnection = connectionPool.getResource();
|
currentConnection = connectionPool.getResource();
|
||||||
return connectionPool.getResource();
|
return currentConnection;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user