mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
Follow up on #2007 This switches the remaining two `WorkerService` RPCs (`RequestActorSuspend` and `SetWorkerCapacity`) to declarative validation via `cmd/ateapi/internal/apivalidation`, completing declarative request validation across `ateapi`. Removes the hand-written checks in `workerservice` (`validateActorRef`, `validateReportedCapacity`) and the now-unused `resources.ValidateGlobalObjectRef`. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR