diff --git a/src/gossip/commands.py b/src/gossip/commands.py index 431941d3..9cfde118 100644 --- a/src/gossip/commands.py +++ b/src/gossip/commands.py @@ -6,7 +6,6 @@ class GossipCommands(IntEnum): PEER_EXCHANGE = auto() STREAM_BLOCKS = auto() PUT_BLOCKS = auto() - CLOSE = auto() def command_to_byte(cmd: GossipCommands): diff --git a/src/gossip/server/__init__.py b/src/gossip/server/__init__.py index c46cf87f..1f283e56 100644 --- a/src/gossip/server/__init__.py +++ b/src/gossip/server/__init__.py @@ -60,8 +60,6 @@ def gossip_server(): match GossipCommands(cmd): case GossipCommands.PING: writer.write(b'PONG') - case GossipCommands.CLOSE: - pass case GossipCommands.ANNOUNCE: async def _read_announce(): address = await reader.readuntil(b'\n') diff --git a/tests/gossip-unittests/test_client_announce.py b/tests/gossip-unittests/test_client_announce.py index 9d81e85e..7cb15034 100644 --- a/tests/gossip-unittests/test_client_announce.py +++ b/tests/gossip-unittests/test_client_announce.py @@ -81,7 +81,6 @@ Thread(target=_announce_server, daemon=True).start() class OnionrClientAnnounce(unittest.TestCase): def test_client_announce_too_long(self): - sleep(1) import onionrplugins our_address = "testtransport" * 100 @@ -100,7 +99,6 @@ class OnionrClientAnnounce(unittest.TestCase): self.assertNotEqual(our_address, reced_address[0]) def test_client_announce(self): - sleep(1) import onionrplugins our_address = "testtransport"