Open poga opened 6 years ago
https://github.com/Chris-Ricketts/actix-broker might be a potential solution
Also, only one actor per type can be registered to the registry, since LuaActor
is a concrete type, we need to work around that.
Actix 0.7.10 provides WeakAddr<A>
for weak referencing an actor, which can be used to provide custom registry.
Is your feature request related to a problem? Please describe. Currently, you can't register
LuaActor
toSystem
orArbiter
since it does not implementSystemService
. In order to implementSystemService
,LuaActor
must implDefault
.The problem is, how do we implement
Default
forLuaActor
? I think the reason actix requiresDefault
for services is that it need to restart them when crashed?Describe the solution you'd like Figure out how to implement
Default
forLuaActor
. Then implementSystemService
,ArbiterService
, andSupervised
for it.Describe alternatives you've considered Not sure, need to understand more detail on actix's registry.