From 95f0e844183dc79a39b743cb5944f6e20494f9fe Mon Sep 17 00:00:00 2001 From: pacrob <5199899+pacrob@users.noreply.github.com> Date: Mon, 24 Mar 2025 08:55:09 -0600 Subject: [PATCH] use console script entry for identify demo --- examples/identify/identify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/identify/identify.py b/examples/identify/identify.py index 0a9fde27..ae4d0e53 100644 --- a/examples/identify/identify.py +++ b/examples/identify/identify.py @@ -61,7 +61,7 @@ async def run(port: int, destination: str) -> None: async with host_a.run(listen_addrs=[listen_addr]): print( "First host listening. Run this from another console:\n\n" - f"python identify.py -p {int(port) + 1} " + f"identify-demo -p {int(port) + 1} " f"-d /ip4/{localhost_ip}/tcp/{port}/p2p/{host_a.get_id().pretty()}\n" ) print("Waiting for incoming identify request...") @@ -98,8 +98,8 @@ async def run(port: int, destination: str) -> None: def main() -> None: description = """ This program demonstrates the libp2p identify protocol. - First run 'python identify.py -p ' to start a listener. - Then run 'python identify.py -p -d ' + First run identify-demo -p ' to start a listener. + Then run 'identify-demo -d ' where is the multiaddress shown by the listener. """