Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
qlands committed Nov 2, 2021
1 parent 575a6a1 commit e9bb8ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion elasticfeeds/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,13 @@ def create_connection(self):
cnt_params["url_prefix"] = self.url_prefix
if self.use_ssl:
cnt_params["use_ssl"] = self.use_ssl
connection = Elasticsearch([cnt_params], max_retries=100, retry_on_timeout=True, timeout=700, request_timeout=800)
connection = Elasticsearch(
[cnt_params],
max_retries=100,
retry_on_timeout=True,
timeout=700,
request_timeout=800,
)
if connection.ping():
return connection
else:
Expand Down

0 comments on commit e9bb8ec

Please sign in to comment.