Skip to content

Commit

Permalink
remove Travis dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Jun 11, 2011
1 parent ee808bf commit 73afc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/heartbeat.rb
Expand Up @@ -43,7 +43,7 @@ def redis
def connect
# apparently the Redis connection is not thread-safe, so we connect another instance
# see https://github.com/ezmobius/redis-rb/issues#issue/75
redis = Redis.connect(:url => Travis.config['redis']['url']).tap { |redis| redis.client.connect }
redis = Redis.connect(:url => ENV['REDIS_URL']).tap { |redis| redis.client.connect }
Redis::Namespace.new(:resque, :redis => redis)
end

Expand Down

0 comments on commit 73afc0a

Please sign in to comment.