clean up ExclusiveLease
This commit is contained in:
parent
8cb41f1989
commit
33f786b5d3
|
|
@ -52,11 +52,6 @@ module Gitlab
|
|||
|
||||
private
|
||||
|
||||
def redis
|
||||
# Maybe someday we want to use a connection pool...
|
||||
@redis ||= Redis.new(url: Gitlab::RedisConfig.url)
|
||||
end
|
||||
|
||||
def redis_key
|
||||
"gitlab:exclusive_lease:#{@key}"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue