From 1613cf02d41e3d717514429b63167302ea66822f Mon Sep 17 00:00:00 2001 From: acul71 Date: Tue, 25 Mar 2025 03:22:33 +0100 Subject: [PATCH] fix: add missing examples/identify/__init__.py and doc docs/examples.identify.rst --- docs/examples.identify.rst | 8 ++++---- examples/identify/__init__.py | 0 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 examples/identify/__init__.py diff --git a/docs/examples.identify.rst b/docs/examples.identify.rst index 53981254..9623f112 100644 --- a/docs/examples.identify.rst +++ b/docs/examples.identify.rst @@ -9,19 +9,19 @@ This example demonstrates how to use the libp2p ``identify`` protocol. Collecting libp2p ... Successfully installed libp2p-x.x.x - $ python identify.py + $ identify-demo First host listening. Run this from another console: - python identify.py -p 8889 -d /ip4/0.0.0.0/tcp/8888/p2p/QmUiN4R3fNrCoQugGgmmb3v35neMEjKFNrsbNGVDsRHWpM + identify-demo -p 8889 -d /ip4/0.0.0.0/tcp/8888/p2p/QmUiN4R3fNrCoQugGgmmb3v35neMEjKFNrsbNGVDsRHWpM Waiting for incoming identify request... -Copy the line that starts with ``python identify.py -p 8889 ....``, open a new terminal in the same +Copy the line that starts with ``identify-demo -p 8889 ....``, open a new terminal in the same folder and paste it in: .. code-block:: console - $ python identify.py -p 8889 -d /ip4/0.0.0.0/tcp/8888/p2p/QmUiN4R3fNrCoQugGgmmb3v35neMEjKFNrsbNGVDsRHWpM + $ identify-demo -p 8889 -d /ip4/0.0.0.0/tcp/8888/p2p/QmUiN4R3fNrCoQugGgmmb3v35neMEjKFNrsbNGVDsRHWpM dialer (host_b) listening on /ip4/0.0.0.0/tcp/8889 Second host connecting to peer: QmUiN4R3fNrCoQugGgmmb3v35neMEjKFNrsbNGVDsRHWpM Starting identify protocol... diff --git a/examples/identify/__init__.py b/examples/identify/__init__.py new file mode 100644 index 00000000..e69de29b