mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 23:51:07 +00:00
Apply PR feedback:
Only use pop method if error handling is in place
This commit is contained in:
@ -292,7 +292,7 @@ class GossipSub(IPubsubRouter):
|
||||
await self.emit_prune(topic, peer)
|
||||
|
||||
# Forget mesh[topic]
|
||||
self.mesh.pop(topic, None)
|
||||
del self.mesh[topic]
|
||||
|
||||
# Heartbeat
|
||||
async def heartbeat(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user