Skip to content

Commit

Permalink
storage_async/client: initialize properly using params in configurati…
Browse files Browse the repository at this point in the history
…on.redis
  • Loading branch information
davidor committed Feb 26, 2019
1 parent 5db6941 commit 34d3b90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/3scale/backend/storage_async/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ class << self

def instance(reset = false)
if reset || @instance.nil?
@instance = new(configuration.redis)
@instance = new(
Storage::Helpers.config_with(
configuration.redis,
options: { default_url: "#{DEFAULT_HOST}:#{DEFAULT_PORT}" }
)
)
else
@instance
end
Expand Down

0 comments on commit 34d3b90

Please sign in to comment.