Fix `Portal.channel: Channel` attr name error

distribute_dis
Tyler Goodlet 2023-12-04 13:00:04 -05:00
parent 239c1c457e
commit b94931bbdd
1 changed files with 3 additions and 3 deletions

View File

@ -84,10 +84,10 @@ async def open_piker_runtime(
a root actor.
'''
# check for existing runtime, boot it
# if not already running.
try:
# check for existing runtime
actor = tractor.current_actor()
except tractor._exceptions.NoRuntime:
tractor._state._runtime_vars[
'piker_vars'
@ -298,7 +298,7 @@ async def maybe_open_pikerd(
# sanity check that we are actually connecting to
# a remote process and not ourselves.
assert actor.uid != pikerd_portal.chan.uid
assert actor.uid != pikerd_portal.channel.uid
assert registry_addrs
yield pikerd_portal