@@ -162,8 +162,8 @@ def prepare(self, *, register_resources: bool = True) -> None:
162
162
assert self .manager .stratum_factory is not None
163
163
self .reactor .listenTCP (self ._args .stratum , self .manager .stratum_factory )
164
164
165
- from hathor .conf .get_settings import get_settings
166
- settings = get_settings ()
165
+ from hathor .conf .get_settings import get_global_settings
166
+ settings = get_global_settings ()
167
167
168
168
if register_resources :
169
169
resources_builder = ResourcesBuilder (
@@ -208,8 +208,8 @@ def start_sentry_if_possible(self) -> None:
208
208
sys .exit (- 3 )
209
209
210
210
import hathor
211
- from hathor .conf .get_settings import get_settings
212
- settings = get_settings ()
211
+ from hathor .conf .get_settings import get_global_settings
212
+ settings = get_global_settings ()
213
213
sentry_sdk .init (
214
214
dsn = self ._args .sentry_dsn ,
215
215
release = hathor .__version__ ,
@@ -270,8 +270,8 @@ def check_unsafe_arguments(self) -> None:
270
270
'' ,
271
271
]
272
272
273
- from hathor .conf .get_settings import get_settings
274
- settings = get_settings ()
273
+ from hathor .conf .get_settings import get_global_settings
274
+ settings = get_global_settings ()
275
275
276
276
if self ._args .unsafe_mode != settings .NETWORK_NAME :
277
277
message .extend ([
@@ -351,7 +351,7 @@ def check_python_version(self) -> None:
351
351
def __init__ (self , * , argv = None ):
352
352
from hathor .cli .run_node_args import RunNodeArgs
353
353
from hathor .conf import TESTNET_SETTINGS_FILEPATH
354
- from hathor .conf .get_settings import get_settings
354
+ from hathor .conf .get_settings import get_global_settings
355
355
self .log = logger .new ()
356
356
357
357
if argv is None :
@@ -369,7 +369,7 @@ def __init__(self, *, argv=None):
369
369
os .environ ['HATHOR_CONFIG_YAML' ] = TESTNET_SETTINGS_FILEPATH
370
370
371
371
try :
372
- get_settings ()
372
+ get_global_settings ()
373
373
except (TypeError , ValidationError ) as e :
374
374
from hathor .exception import PreInitializationError
375
375
raise PreInitializationError (
0 commit comments