Remove dead peer if floodsub write stream fail
This commit is contained in:
parent
009df257bc
commit
474ed41652
|
@ -98,6 +98,7 @@ class FloodSub(IPubsubRouter):
|
|||
await stream.write(encode_varint_prefixed(rpc_msg.SerializeToString()))
|
||||
except StreamClosed:
|
||||
logger.debug("Fail to publish message to %s: stream closed", peer_id)
|
||||
self.pubsub._handle_dead_peer(peer_id)
|
||||
|
||||
async def join(self, topic: str) -> None:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user