mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
data/buildlogs: format file with black (#1061)
This commit is contained in:
@@ -31,9 +31,7 @@ class RedisBuildLogs(object):
|
||||
return self._redis_client
|
||||
|
||||
args = dict(self._redis_config)
|
||||
args.update(
|
||||
{"socket_connect_timeout": 1, "socket_timeout": 2}
|
||||
)
|
||||
args.update({"socket_connect_timeout": 1, "socket_timeout": 2})
|
||||
|
||||
self._redis_client = redis.StrictRedis(**args)
|
||||
return self._redis_client
|
||||
@@ -126,9 +124,7 @@ class RedisBuildLogs(object):
|
||||
def check_health(self):
|
||||
try:
|
||||
args = dict(self._redis_config)
|
||||
args.update(
|
||||
{"socket_connect_timeout": 1, "socket_timeout": 1}
|
||||
)
|
||||
args.update({"socket_connect_timeout": 1, "socket_timeout": 1})
|
||||
|
||||
with closing(redis.StrictRedis(**args)) as connection:
|
||||
if not connection.ping():
|
||||
|
||||
Reference in New Issue
Block a user