Skip to content

Commit

Permalink
Merge pull request #1593 from yuhei-mukoyama/redis_connect_abolition
Browse files Browse the repository at this point in the history
`Redis.connect` is abolition in redis v4.0.0
  • Loading branch information
Chris C Cerami committed Dec 14, 2017
2 parents f54466f + 59a7d61 commit 12a3f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def redis=(server)
case server
when String
if server =~ /redis\:\/\//
redis = Redis.connect(:url => server, :thread_safe => true)
redis = Redis.new(:url => server, :thread_safe => true)
else
server, namespace = server.split('/', 2)
host, port, db = server.split(':')
Expand Down

0 comments on commit 12a3f68

Please sign in to comment.