mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 14:40:53 +00:00
breaking: identify protocol use now prefix-length messages by default. use use_varint_format param for old raw messages
This commit is contained in:
@ -459,7 +459,11 @@ async def test_push_identify_to_peers_respects_concurrency_limit():
|
||||
lock = trio.Lock()
|
||||
|
||||
async def mock_push_identify_to_peer(
|
||||
host, peer_id, observed_multiaddr=None, limit=trio.Semaphore(CONCURRENCY_LIMIT)
|
||||
host,
|
||||
peer_id,
|
||||
observed_multiaddr=None,
|
||||
limit=trio.Semaphore(CONCURRENCY_LIMIT),
|
||||
use_varint_format=True,
|
||||
) -> bool:
|
||||
"""
|
||||
Mock function to test concurrency by simulating an identify message.
|
||||
|
||||
Reference in New Issue
Block a user