Address rubocop offenses

This commit is contained in:
kirby@puppetlabs.com 2020-05-07 15:19:44 -07:00
parent 86f6848ef0
commit 9538c0b3e3
3 changed files with 66 additions and 71 deletions

View file

@ -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)