Skip to content

Commit 8bfd4bd

Browse files
committed
created concurrency limit configurable
1 parent 383d7cb commit 8bfd4bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libp2p/identity/identify_push/identify_push.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ async def push_identify_to_peers(
178178
observed_multiaddr: Multiaddr | None = None,
179179
counter: dict[str, int] | None = None,
180180
lock: trio.Lock | None = None,
181+
limit: int = CONCURRENCY_LIMIT,
181182
) -> int: # <-- return the max concurrency
182183
"""
183184
Push an identify message to multiple peers in parallel.

0 commit comments

Comments
 (0)