Skip to content

Commit

Permalink
Merge pull request #59 from mixbytes/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
karapetyantv authored Aug 10, 2022
2 parents f3aacf6 + 49616ce commit 3b7bf98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions oracleservice/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _recover_connection_to_relay_chain(self):
"""
while True:
try:
if self.failure_reqs_count[self.service_params.substrate.url] > self.service_params.max_number_of_failure_reqs: # noqa: E501
if self.failure_reqs_count[self.service_params.substrate.url] > self.service_params.max_number_of_failure_requests: # noqa: E501
self.undesirable_urls.add(self.service_params.substrate.url)
self.service_params.substrate.websocket.shutdown()
self.service_params.substrate = create_interface(
Expand Down Expand Up @@ -131,7 +131,7 @@ def _recover_connection_to_parachain(self):
"""
while True:
try:
if self.failure_reqs_count[self.service_params.w3.provider.endpoint_uri] > self.service_params.max_number_of_failure_reqs: # noqa: E501
if self.failure_reqs_count[self.service_params.w3.provider.endpoint_uri] > self.service_params.max_number_of_failure_requests: # noqa: E501
self.undesirable_urls.add(self.service_params.w3.provider.endpoint_uri)
self.service_params.w3 = create_provider(
urls=self.service_params.ws_urls_para,
Expand Down
2 changes: 1 addition & 1 deletion oracleservice/service_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ServiceParameters:

debug_mode: bool
frequency_of_requests: int
max_number_of_failure_reqs: int
max_number_of_failure_requests: int
oracle_status_lock: Lock
timeout: int

Expand Down

0 comments on commit 3b7bf98

Please sign in to comment.