Fix `Portal.channel: Channel` attr name error
parent
239c1c457e
commit
b94931bbdd
|
@ -84,10 +84,10 @@ async def open_piker_runtime(
|
||||||
a root actor.
|
a root actor.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
# check for existing runtime, boot it
|
||||||
|
# if not already running.
|
||||||
try:
|
try:
|
||||||
# check for existing runtime
|
|
||||||
actor = tractor.current_actor()
|
actor = tractor.current_actor()
|
||||||
|
|
||||||
except tractor._exceptions.NoRuntime:
|
except tractor._exceptions.NoRuntime:
|
||||||
tractor._state._runtime_vars[
|
tractor._state._runtime_vars[
|
||||||
'piker_vars'
|
'piker_vars'
|
||||||
|
@ -298,7 +298,7 @@ async def maybe_open_pikerd(
|
||||||
|
|
||||||
# sanity check that we are actually connecting to
|
# sanity check that we are actually connecting to
|
||||||
# a remote process and not ourselves.
|
# a remote process and not ourselves.
|
||||||
assert actor.uid != pikerd_portal.chan.uid
|
assert actor.uid != pikerd_portal.channel.uid
|
||||||
assert registry_addrs
|
assert registry_addrs
|
||||||
|
|
||||||
yield pikerd_portal
|
yield pikerd_portal
|
||||||
|
|
Loading…
Reference in New Issue