Skip to content

Commit

Permalink
fix blpop timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Mar 7, 2016
1 parent 9831bb3 commit 53266b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcentrifugo/engineredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (e *RedisEngine) blpopTimeout() int {
// No read timeout - we can block frever in BLOP.
timeout = 0
} else {
timeout := int(e.config.ReadTimeout.Seconds() / 2)
timeout = int(readTimeout.Seconds() / 2)
if timeout == 0 {
timeout = 1
}
Expand Down

0 comments on commit 53266b4

Please sign in to comment.