mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
Fix: use pass over ...(Ellipse)
Use `...`(Ellipse) only in abstract methods.
This commit is contained in:
@ -50,7 +50,7 @@ class PubsubNotifee(INotifee):
|
||||
await self.initiator_peers_queue.send(conn.muxed_conn.peer_id)
|
||||
except trio.BrokenResourceError:
|
||||
# The receive channel is closed by Pubsub. We should do nothing here.
|
||||
...
|
||||
pass
|
||||
|
||||
async def disconnected(self, network: INetwork, conn: INetConn) -> None:
|
||||
"""
|
||||
@ -64,7 +64,7 @@ class PubsubNotifee(INotifee):
|
||||
await self.dead_peers_queue.send(conn.muxed_conn.peer_id)
|
||||
except trio.BrokenResourceError:
|
||||
# The receive channel is closed by Pubsub. We should do nothing here.
|
||||
...
|
||||
pass
|
||||
|
||||
async def listen(self, network: INetwork, multiaddr: Multiaddr) -> None:
|
||||
await trio.hazmat.checkpoint()
|
||||
|
||||
Reference in New Issue
Block a user