Update libp2p/pubsub/gossipsub.py
Co-Authored-By: Chih Cheng Liang <chihchengliang@gmail.com>
This commit is contained in:
parent
74092c1371
commit
cb80cfc50b
|
@ -121,7 +121,7 @@ class GossipSub(IPubsubRouter):
|
||||||
# instance in multistream-select, but it is not the protocol that gossipsub supports.
|
# instance in multistream-select, but it is not the protocol that gossipsub supports.
|
||||||
# In this case, probably we registered gossipsub to a wrong `protocol_id`
|
# In this case, probably we registered gossipsub to a wrong `protocol_id`
|
||||||
# in multistream-select, or wrong versions.
|
# in multistream-select, or wrong versions.
|
||||||
raise Exception(f"Unreachable: Protocol={protocol_id} is not supported.")
|
raise ValueError(f"Protocol={protocol_id} is not supported.")
|
||||||
self.peer_protocol[peer_id] = protocol_id
|
self.peer_protocol[peer_id] = protocol_id
|
||||||
|
|
||||||
def remove_peer(self, peer_id: ID) -> None:
|
def remove_peer(self, peer_id: ID) -> None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user