From 5150688227eeb06da1e7feb080af2363c88b57ab Mon Sep 17 00:00:00 2001 From: Gabriel Levcovitz Date: Tue, 16 Jan 2024 20:00:20 -0300 Subject: [PATCH] fix lint --- hathor/p2p/manager.py | 6 +++--- tests/p2p/test_whitelist.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hathor/p2p/manager.py b/hathor/p2p/manager.py index f09eaf717..d180af7c8 100644 --- a/hathor/p2p/manager.py +++ b/hathor/p2p/manager.py @@ -23,7 +23,7 @@ from twisted.python.failure import Failure from twisted.web.client import Agent -from hathor.conf.get_settings import get_settings +from hathor.conf.get_settings import get_global_settings from hathor.p2p.netfilter.factory import NetfilterFactory from hathor.p2p.peer_discovery import PeerDiscovery from hathor.p2p.peer_id import PeerId @@ -43,7 +43,7 @@ from hathor.manager import HathorManager logger = get_logger() -settings = get_settings() +settings = get_global_settings() # The timeout in seconds for the whitelist GET request WHITELIST_REQUEST_TIMEOUT = 45 @@ -101,7 +101,7 @@ def __init__(self, self.log = logger.new() self.rng = rng self.manager = None - self._settings = get_settings() + self._settings = get_global_settings() self.reactor = reactor self.my_peer = my_peer diff --git a/tests/p2p/test_whitelist.py b/tests/p2p/test_whitelist.py index 533a2cf6d..e7b83fc18 100644 --- a/tests/p2p/test_whitelist.py +++ b/tests/p2p/test_whitelist.py @@ -4,7 +4,7 @@ from twisted.python.failure import Failure from twisted.web.client import Agent -from hathor.conf.get_settings import get_settings +from hathor.conf.get_settings import get_global_settings from hathor.conf.settings import HathorSettings from hathor.manager import HathorManager from hathor.p2p.manager import WHITELIST_REQUEST_TIMEOUT @@ -12,7 +12,7 @@ from hathor.simulator import FakeConnection from tests import unittest -settings = get_settings() +settings = get_global_settings() class WhitelistTestCase(unittest.SyncV1Params, unittest.TestCase):