Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mperham/sidekiq
...
head fork: kevinzen/sidekiq
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/sidekiq.rb
View
8 lib/sidekiq.rb
@@ -69,12 +69,8 @@ def self.redis(&block)
def self.redis=(hash)
return @redis = hash if hash.is_a?(ConnectionPool)
-
- if hash.is_a?(Hash)
- @hash = hash
- else
- raise ArgumentError, "redis= requires a Hash or ConnectionPool"
- end
+ return @redis = Sidekiq::RedisConnection.create(@hash = hash) if hash.is_a?(Hash)
+ raise ArgumentError, "redis= requires a Hash or ConnectionPool"
end
def self.client_middleware

No commit comments for this range

Something went wrong with that request. Please try again.