Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(
    cfg: &LoopConfig,
    req: &InvokeRequest,
    pinned: Option<&str>,
) -> Result<(InvokeResponse, Vec<String>), ProviderError>
Expand description

Walk the cascade for a tier and invoke the first provider that is both available and succeeds. Returns the response plus the ids that were skipped so the ledger can record why.