mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Address rubocop offenses
This commit is contained in:
parent
86f6848ef0
commit
9538c0b3e3
3 changed files with 66 additions and 71 deletions
|
|
@ -166,11 +166,11 @@ module Vmpooler
|
|||
metric_prefix: 'redis_connection_pool',
|
||||
size: size,
|
||||
timeout: timeout
|
||||
) {
|
||||
) do
|
||||
connection = Concurrent::Hash.new
|
||||
redis = new_redis(host, port, password)
|
||||
connection['connection'] = redis
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
def self.new_redis(host = 'localhost', port = nil, password = nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue