mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
Apply suggestions from code review
Co-Authored-By: Chih Cheng Liang <chihchengliang@gmail.com>
This commit is contained in:
@ -130,7 +130,7 @@ class GossipSub(IPubsubRouter):
|
||||
# In this case, probably we registered gossipsub to a wrong `protocol_id`
|
||||
# in multistream-select, or wrong versions.
|
||||
raise Exception(
|
||||
f"This should not happen. Protocol={protocol_id} is not supported."
|
||||
f"Unreachable: Protocol={protocol_id} is not supported."
|
||||
)
|
||||
self.peers_to_protocol[peer_id] = protocol_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user