Skip to content

Commit

Permalink
Remove connection naming, fixes #4479
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Mar 23, 2020
1 parent 4ca3721 commit 05f874e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Expand Up @@ -2,6 +2,11 @@

[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)

HEAD
---------

- Remove Redis connection naming [#4479]

6.0.6
---------

Expand Down
1 change: 0 additions & 1 deletion lib/sidekiq/redis_connection.rb
Expand Up @@ -12,7 +12,6 @@ def create(options = {})
options[key.to_sym] = options.delete(key)
end

options[:id] = "Sidekiq-#{Sidekiq.server? ? "server" : "client"}-PID-#{::Process.pid}" unless options.key?(:id)
options[:url] ||= determine_redis_provider

size = if options[:size]
Expand Down
3 changes: 1 addition & 2 deletions test/test_redis_connection.rb
Expand Up @@ -27,7 +27,6 @@ def client_for(redis)
it "creates a pooled redis connection" do
pool = Sidekiq::RedisConnection.create
assert_equal Redis, pool.checkout.class
assert_equal "Sidekiq-server-PID-#{$$}", pool.checkout.connection.fetch(:id)
end

# Readers for these ivars should be available in the next release of
Expand Down Expand Up @@ -207,7 +206,7 @@ def server_connection(*args)
assert_includes(output, ':host=>"host1", :port=>26379, :password=>"REDACTED"')
assert_includes(output, ':host=>"host2", :port=>26379, :password=>"REDACTED"')
assert_includes(output, ':host=>"host3", :port=>26379, :password=>"REDACTED"')
assert_includes(output, ':password=>"REDACTED", :id=>')
assert_includes(output, ':password=>"REDACTED"')
end
end
end
Expand Down

0 comments on commit 05f874e

Please sign in to comment.