Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
glevco committed Jan 17, 2024
1 parent 192c8b3 commit 5150688
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions hathor/p2p/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/p2p/test_whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
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
from hathor.p2p.sync_version import SyncVersion
from hathor.simulator import FakeConnection
from tests import unittest

settings = get_settings()
settings = get_global_settings()


class WhitelistTestCase(unittest.SyncV1Params, unittest.TestCase):
Expand Down

0 comments on commit 5150688

Please sign in to comment.