mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 08:00:54 +00:00
Fix lint after applying suggestion
This commit is contained in:
@ -129,9 +129,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(
|
raise Exception(f"Unreachable: Protocol={protocol_id} is not supported.")
|
||||||
f"Unreachable: Protocol={protocol_id} is not supported."
|
|
||||||
)
|
|
||||||
self.peers_to_protocol[peer_id] = protocol_id
|
self.peers_to_protocol[peer_id] = protocol_id
|
||||||
|
|
||||||
def remove_peer(self, peer_id: ID) -> None:
|
def remove_peer(self, peer_id: ID) -> None:
|
||||||
|
|||||||
@ -148,7 +148,7 @@ async def test_handle_prune(pubsubs_gsub, hosts):
|
|||||||
|
|
||||||
await connect(hosts[index_alice], hosts[index_bob])
|
await connect(hosts[index_alice], hosts[index_bob])
|
||||||
|
|
||||||
# Wait for heartbeat to allow mesh to connect
|
# Wait for heartbeat to allow mesh to connect
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
||||||
# Check that they are each other's mesh peer
|
# Check that they are each other's mesh peer
|
||||||
|
|||||||
Reference in New Issue
Block a user