File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
libp2p/identity/identify_push Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ def identify_push_handler_for(
58
58
59
59
Args:
60
60
host: The libp2p host.
61
- use_varint_format: If True, expect length-prefixed format; if False,
62
- expect raw protobuf.
61
+ use_varint_format: True=length-prefixed, False=raw protobuf.
63
62
64
63
"""
65
64
@@ -192,8 +191,7 @@ async def push_identify_to_peer(
192
191
peer_id: The peer ID to push to.
193
192
observed_multiaddr: The observed multiaddress (optional).
194
193
limit: Semaphore for concurrency control.
195
- use_varint_format: If True, send length-prefixed format; if False,
196
- send raw protobuf.
194
+ use_varint_format: True=length-prefixed, False=raw protobuf.
197
195
198
196
Returns:
199
197
bool: True if the push was successful, False otherwise.
@@ -241,8 +239,7 @@ async def push_identify_to_peers(
241
239
host: The libp2p host.
242
240
peer_ids: Set of peer IDs to push to (if None, push to all connected peers).
243
241
observed_multiaddr: The observed multiaddress (optional).
244
- use_varint_format: If True, send length-prefixed format; if False,
245
- send raw protobuf.
242
+ use_varint_format: True=length-prefixed, False=raw protobuf.
246
243
247
244
"""
248
245
if peer_ids is None :
You can’t perform that action at this time.
0 commit comments