Skip to content

Commit

Permalink
Merge pull request #885 from ujihisa/master
Browse files Browse the repository at this point in the history
README.md: Disable reconnecting which doubles the duration until unsubscribe
  • Loading branch information
byroot committed Nov 17, 2020
2 parents 82ba7d5 + 949d8ef commit 33f1902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -265,6 +265,7 @@ All timeout values are specified in seconds.
When using pub/sub, you can subscribe to a channel using a timeout as well:

```ruby
redis = Redis.new(reconnect_attempts: 0)
redis.subscribe_with_timeout(5, "news") do |on|
on.message do |channel, message|
# ...
Expand Down

0 comments on commit 33f1902

Please sign in to comment.