forked from goodboy/tractor
1
0
Fork 0

Use local actor var

trio_memchans
Tyler Goodlet 2019-02-15 17:11:26 -05:00
parent 51f082fff7
commit b91d13cfea
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ async def open_nursery() -> typing.AsyncGenerator[ActorNursery, None]:
raise RuntimeError("No actor instance has been defined yet?") raise RuntimeError("No actor instance has been defined yet?")
# TODO: figure out supervisors from erlang # TODO: figure out supervisors from erlang
async with ActorNursery(current_actor()) as nursery: async with ActorNursery(actor) as nursery:
yield nursery yield nursery