Expose `_multiaddr` API from `tractor.discovery`
Re-export `parse_endpoints`, `parse_maddr`, and `mk_maddr` in `discovery.__init__` so downstream (piker) can import directly from the pkg ns. (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
e90241baaa
commit
a891e003b2
|
|
@ -24,3 +24,8 @@ module paths like ``tractor.discovery._addr`` or
|
|||
``tractor.discovery._discovery`` instead.
|
||||
|
||||
'''
|
||||
from ._multiaddr import (
|
||||
parse_endpoints as parse_endpoints,
|
||||
parse_maddr as parse_maddr,
|
||||
mk_maddr as mk_maddr,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ _tpt_proto_to_maddr: dict[str, str] = {
|
|||
_maddr_to_tpt_proto: dict[str, str] = {
|
||||
v: k for k, v in _tpt_proto_to_maddr.items()
|
||||
}
|
||||
# {'tcp': 'tcp', 'unix': 'uds'}
|
||||
# -> {'tcp': 'tcp', 'unix': 'uds'}
|
||||
|
||||
|
||||
def mk_maddr(
|
||||
|
|
|
|||
Loading…
Reference in New Issue