error actor-not-hosted
Шардированный актор не размещён ни одной ролью.
What it means#
When the program has a cluster, every sharded actor must appear in the hosts clause of at least one role; otherwise no node could activate it.
Example#
actor Cart sharded by id: u64 { msg add() { } } // <- actor-not-hosted
cluster demo { role api { } }error
actor-not-hosted
How to fix#
Add hosts Cart to a role: role api { hosts Cart }.