Drop `snippets/multiaddr_ex.py` scratch script
Since we no longer need the example after integrating `multiaddr` into the `.discovery` subsys. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-codesubint_spawner_backend
parent
3152f423d8
commit
7c8e5a6732
|
|
@ -1,13 +0,0 @@
|
||||||
from pathlib import Path
|
|
||||||
from multiaddr import Multiaddr
|
|
||||||
|
|
||||||
# construct from a string
|
|
||||||
m1 = Multiaddr("/ip4/127.0.0.1/udp/1234")
|
|
||||||
m2 = Multiaddr("/unix/run/user/1000/sway-ipc.1000.1557.sock")
|
|
||||||
for key in m1.protocols():
|
|
||||||
key
|
|
||||||
|
|
||||||
uds_sock_path = Path(m2.values()[0])
|
|
||||||
uds_sock_path
|
|
||||||
uds_sock_path.is_file()
|
|
||||||
uds_sock_path.is_socket()
|
|
||||||
Loading…
Reference in New Issue