Skip to content

Commit

Permalink
Read sentinel-list if mode = sentinel and "redis.sentinels" is not pr…
Browse files Browse the repository at this point in the history
…ovided
  • Loading branch information
herzrasen committed May 4, 2018
1 parent 2d5faee commit b91f56a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/akka/persistence/redis/RedisUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ object RedisUtils {
.getConfigList("redis.sentinels")
.asScala
.map(c => (c.getString("host"), c.getInt("port")))
} else {conf
} else {
conf
.getString("redis.sentinel-list")
.split(",")
.map(HostAndPort.apply)
Expand Down

0 comments on commit b91f56a

Please sign in to comment.