From d112cf8796b88ac21ccb595de590c5d83c5049d7 Mon Sep 17 00:00:00 2001 From: Sarah Date: Sun, 17 Oct 2021 03:04:22 +0200 Subject: [PATCH] more fixes. --- peerix/app.py | 3 +-- peerix/remote.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/peerix/app.py b/peerix/app.py index 94ea494..dc33a1b 100644 --- a/peerix/app.py +++ b/peerix/app.py @@ -16,8 +16,7 @@ async def _setup_stores(local_port: int): global l_access, r_access async with local() as l: l_access = PrefixStore("local/nar", l) - lp = PrefixStore("local", l) - async with remote(lp, local_port, "0.0.0.0") as r: + async with remote(l_access, local_port, "0.0.0.0") as r: r_access = PrefixStore("remote", r) yield setup_store = _setup_stores(12304) diff --git a/peerix/remote.py b/peerix/remote.py index 9c31169..0f7f0a1 100644 --- a/peerix/remote.py +++ b/peerix/remote.py @@ -53,7 +53,6 @@ class DiscoveryProtocol(asyncio.DatagramProtocol, Store): self.transport = transport def datagram_received(self, data: bytes, addr: t.Tuple[str, int]) -> None: - print(set(get_myself())) if addr[0] in set(get_myself()): print(f"Ignoring packet from {addr[0]}") return