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

error rpc-attr

error Стандарт: [§10.2]

Неизвестный атрибут rpc или неверные аргументы.

What it means#

The attributes of an rpc are @timeout(d), @retry(n, backoff: b), @idempotent(key: f), @readonly, @cache(ttl: d, key: f), @ratelimit(rps: n, burst: m, by: f), @public, @internal, @allow(…), @resumable, @window(n), @trace(sample: p), @audit. Durations and counts are compile-time values.

Example#

oxl✓ проверяется в CI
service S {
  @timeout(0ms)         // <- rpc-attr
  rpc get() -> i32
}
error
rpc-attr

How to fix#

Fix the argument or remove the attribute.

See also#

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