From 6c037b29b5571c9fc1ebf581b37c1e03b8c45dd9 Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Sat, 31 Dec 2022 12:46:32 -0600 Subject: [PATCH] Rename "p" -> "proto" for consistency with lbry-sdk. Lint does not like variable named "p". --- hub/herald/udp.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hub/herald/udp.py b/hub/herald/udp.py index 3101ea7..7929530 100644 --- a/hub/herald/udp.py +++ b/hub/herald/udp.py @@ -244,8 +244,8 @@ class StatusServer: self._protocols.append(proto) async def stop(self): - for p in self._protocols: - await p.close() + for proto in self._protocols: + await proto.close() self._protocols.clear() @property @@ -253,16 +253,16 @@ class StatusServer: return self._protocols def set_unavailable(self): - for p in self._protocols: - p.set_unavailable() + for proto in self._protocols: + proto.set_unavailable() def set_available(self): - for p in self._protocols: - p.set_available() + for proto in self._protocols: + proto.set_available() def set_height(self, height: int, tip: bytes): - for p in self._protocols: - p.set_height(height, tip) + for proto in self._protocols: + proto.set_height(height, tip) class SPVStatusClientProtocol(asyncio.DatagramProtocol):