error service-not-served
What it means#
When the program has a cluster, every service with an impl must be listed in the serves clause of at least one role.
Example#
service S { rpc a() -> i32 }
impl S { rpc a() { 1 } }
cluster c {
role api { } // <- service-not-served (S)
}error
service-not-served
How to fix#
Add serves S to a role.