@@ -166,8 +166,8 @@ def prepare(self, *, register_resources: bool = True) -> None:
166
166
assert self .manager .stratum_factory is not None
167
167
self .reactor .listenTCP (self ._args .stratum , self .manager .stratum_factory )
168
168
169
- from hathor .conf .get_settings import get_settings
170
- settings = get_settings ()
169
+ from hathor .conf .get_settings import get_global_settings
170
+ settings = get_global_settings ()
171
171
172
172
if register_resources :
173
173
resources_builder = ResourcesBuilder (
@@ -212,8 +212,8 @@ def start_sentry_if_possible(self) -> None:
212
212
sys .exit (- 3 )
213
213
214
214
import hathor
215
- from hathor .conf .get_settings import get_settings
216
- settings = get_settings ()
215
+ from hathor .conf .get_settings import get_global_settings
216
+ settings = get_global_settings ()
217
217
sentry_sdk .init (
218
218
dsn = self ._args .sentry_dsn ,
219
219
release = hathor .__version__ ,
@@ -274,8 +274,8 @@ def check_unsafe_arguments(self) -> None:
274
274
'' ,
275
275
]
276
276
277
- from hathor .conf .get_settings import get_settings
278
- settings = get_settings ()
277
+ from hathor .conf .get_settings import get_global_settings
278
+ settings = get_global_settings ()
279
279
280
280
if self ._args .unsafe_mode != settings .NETWORK_NAME :
281
281
message .extend ([
@@ -355,7 +355,7 @@ def check_python_version(self) -> None:
355
355
def __init__ (self , * , argv = None ):
356
356
from hathor .cli .run_node_args import RunNodeArgs
357
357
from hathor .conf import TESTNET_SETTINGS_FILEPATH
358
- from hathor .conf .get_settings import get_settings
358
+ from hathor .conf .get_settings import get_global_settings
359
359
self .log = logger .new ()
360
360
361
361
if argv is None :
@@ -373,7 +373,7 @@ def __init__(self, *, argv=None):
373
373
os .environ ['HATHOR_CONFIG_YAML' ] = TESTNET_SETTINGS_FILEPATH
374
374
375
375
try :
376
- get_settings ()
376
+ get_global_settings ()
377
377
except (TypeError , ValidationError ) as e :
378
378
from hathor .exception import PreInitializationError
379
379
raise PreInitializationError (
0 commit comments