error rpc-attr
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#
service S {
@timeout(0ms) // <- rpc-attr
rpc get() -> i32
}error
rpc-attr
How to fix#
Fix the argument or remove the attribute.