forked from goodboy/tractor
Top level actor must have a `main()` now
parent
716a44b6b8
commit
65beb2d84e
|
@ -705,11 +705,9 @@ async def _start_actor(
|
||||||
arbiter_addr=arbiter_addr,
|
arbiter_addr=arbiter_addr,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if main is not None:
|
|
||||||
result = await main()
|
result = await main()
|
||||||
|
|
||||||
# XXX: If spawned with a dedicated "main function",
|
# XXX: the actor is cancelled when this context is complete
|
||||||
# the actor is cancelled when this context is complete
|
|
||||||
# given that there are no more active peer channels connected
|
# given that there are no more active peer channels connected
|
||||||
actor.cancel_server()
|
actor.cancel_server()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue