Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from intenthq/redis-pool-thread-safe
Browse files Browse the repository at this point in the history
Make RoundRobinRedisPool thread-safe.
  • Loading branch information
janstenpickle committed Sep 29, 2015
2 parents 0e15a33 + e72abb6 commit 2fbccae
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 256 deletions.
164 changes: 0 additions & 164 deletions gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public RoundRobinRedisPool(final List<Redis> redisServers) {
*
* @return The instance of Redis as pulled from the pool.
*/
public Redis getNextRedis() {
public synchronized Redis getNextRedis() {
if (!redisPoolIterator.hasNext()) {
redisPoolIterator = redisServers.iterator();
}
Expand Down
2 changes: 1 addition & 1 deletion project/commons.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt._
import Keys._

object Commons {
val appVersion = "1.1.0"
val appVersion = "1.1.1"

val pomInfo = (
<url>https://github.com/intenthq/icicle</url>
Expand Down

0 comments on commit 2fbccae

Please sign in to comment.