MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / request_blocking

Method request_blocking

crates/core/src/plugins/nemo_guardrails/python.rs:492–497  ·  view source on GitHub ↗
(&self, mut payload: Json, timeout: Duration)

Source from the content-addressed store, hash-verified

490 }
491
492 fn request_blocking(&self, mut payload: Json, timeout: Duration) -> FlowResult<WorkerEnvelope> {
493 let receiver = self.send_request(&mut payload)?;
494 receiver
495 .recv_timeout(timeout)
496 .map_err(|err| FlowError::Internal(format!("worker did not initialize: {err}")))
497 }
498
499 fn send_request(&self, payload: &mut Json) -> FlowResult<std_mpsc::Receiver<WorkerEnvelope>> {
500 let id = self.next_request_id();

Callers 1

initializeMethod · 0.80

Calls 1

send_requestMethod · 0.80

Tested by

no test coverage detected