Skip to content
Snippets Groups Projects
Commit 45626796 authored by Jakub Ziebinski's avatar Jakub Ziebinski
Browse files

Replace the import of settings from helpy by those from beekeepy

parent 24e0b28a
No related branches found
No related tags found
2 merge requests!600v1.27.5.21 Release,!583Remove helpy
......@@ -7,9 +7,9 @@ from datetime import timedelta
from pathlib import Path
from typing import Literal, TypeVar, cast, get_args, overload
from beekeepy import RemoteHandleSettings
from beekeepy import Settings as BeekeepySettings
from helpy import HttpUrl
from helpy import Settings as HelpySettings
from beekeepy.interfaces import HttpUrl
from inflection import underscore
from clive.__private.core.constants.setting_identifiers import (
......@@ -311,14 +311,14 @@ class SafeSettings:
def communication_retries_delay_secs(self) -> float:
return self._get_node_communication_retries_delay_secs()
def settings_factory(self, http_endpoint: HttpUrl) -> HelpySettings:
helpy_settings = HelpySettings(http_endpoint=http_endpoint)
def settings_factory(self, http_endpoint: HttpUrl) -> RemoteHandleSettings:
remote_handle_settings = RemoteHandleSettings(http_endpoint=http_endpoint)
helpy_settings.timeout = timedelta(seconds=self.communication_timeout_total_secs)
helpy_settings.max_retries = self.communication_attempts_amount
helpy_settings.period_between_retries = timedelta(seconds=self.communication_retries_delay_secs)
remote_handle_settings.timeout = timedelta(seconds=self.communication_timeout_total_secs)
remote_handle_settings.max_retries = self.communication_attempts_amount
remote_handle_settings.period_between_retries = timedelta(seconds=self.communication_retries_delay_secs)
return helpy_settings
return remote_handle_settings
def _get_node_chain_id(self) -> str | None:
from clive.__private.core.validate_schema_field import is_schema_field_valid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment