Skip to content

Commit

Permalink
Using thread_safe option when setting redis url
Browse files Browse the repository at this point in the history
  • Loading branch information
mrduncan authored and defunkt committed Feb 4, 2011
1 parent 26a14bc commit 2ee219e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque.rb
Expand Up @@ -33,7 +33,7 @@ module Resque
def redis=(server)
if server.respond_to? :split
if server =~ /redis\:\/\//
redis = Redis.connect(:url => server)
redis = Redis.connect(:url => server, :thread_safe => true)
else
server, namespace = server.split('/', 2)
host, port, db = server.split(':')
Expand Down

0 comments on commit 2ee219e

Please sign in to comment.