OxL Справочник OxL
РусскийEnglish

error actor-not-hosted

error Стандарт: [§12.1, §12.5]

Шардированный актор не размещён ни одной ролью.

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#

oxl✓ проверяется в CI
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 }.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства