Port to new `parse_maddr()` name

distribute_dis
Tyler Goodlet 2023-09-29 15:20:56 -04:00
parent fcececce19
commit 5d081a40d5
1 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ def pikerd(
)] )]
from .. import service from .. import service
from tractor._multiaddr import parse_addr from tractor._multiaddr import parse_maddr
# transport-oriented endpoint multi-addresses # transport-oriented endpoint multi-addresses
eps: dict[ eps: dict[
@ -141,7 +141,7 @@ def pikerd(
case 'pikerd': case 'pikerd':
dname: str = key dname: str = key
for maddr in maddrs: for maddr in maddrs:
layers: dict = parse_addr(maddr) layers: dict = parse_maddr(maddr)
eps.setdefault( eps.setdefault(
dname, dname,
[], [],
@ -149,7 +149,7 @@ def pikerd(
else: else:
# presume user is manually specifying the root actor ep. # presume user is manually specifying the root actor ep.
eps['pikerd'] = [parse_addr(maddr)] eps['pikerd'] = [parse_maddr(maddr)]
regaddrs: list[tuple[str, int]] = [] regaddrs: list[tuple[str, int]] = []
for layers in eps['pikerd']: for layers in eps['pikerd']: