MCPcopy Create free account
hub / github.com/dfinity/orbit / try_execute_request

Method try_execute_request

core/station/impl/src/controllers/request.rs:300–306  ·  view source on GitHub ↗

No authorization middleware as the caller is checked to be the station canister.

(&self, id: UUID)

Source from the content-addressed store, hash-verified

298
299 // No authorization middleware as the caller is checked to be the station canister.
300 async fn try_execute_request(&self, id: UUID) -> Result<(), RequestExecuteError> {
301 let ctx = call_context();
302 if !ctx.caller_is_self() {
303 trap("The method `try_execute_request` can only be called by the station canister.");
304 }
305 self.request_service.try_execute_request(id).await
306 }
307}

Callers 1

try_execute_requestFunction · 0.45

Calls 3

trapFunction · 0.85
caller_is_selfMethod · 0.80
call_contextFunction · 0.50

Tested by

no test coverage detected