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