Skip to content

Commit

Permalink
Do not provide nil values for missing connection pool options
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Nov 12, 2018
1 parent 34d60c7 commit 00f9fc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/redis/rack/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def store
end

def pool_options
{
size: @options[:pool_size],
timeout: @options[:pool_timeout]
}
pool_options = {}
pool_options[:size] = @options[:pool_size] if @options[:pool_size]
pool_options[:timeout] = @options[:pool_timeout] if @options[:pool_timeout]
pool_options
end
end
end
Expand Down

0 comments on commit 00f9fc5

Please sign in to comment.