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

Method send

crates/core/src/plugins/nemo_guardrails/python.rs:623–639  ·  view source on GitHub ↗
(&self, line: String)

Source from the content-addressed store, hash-verified

621 }
622
623 fn send(&self, line: String) -> FlowResult<()> {
624 if let Some(error) = self
625 .error
626 .lock()
627 .map_err(|err| {
628 FlowError::Internal(format!("worker writer error lock poisoned: {err}"))
629 })?
630 .clone()
631 {
632 return Err(FlowError::Internal(format!(
633 "failed to write worker command: {error}"
634 )));
635 }
636 self.sender.send(line).map_err(|err| {
637 FlowError::Internal(format!("worker command writer channel closed: {err}"))
638 })
639 }
640
641 fn join(mut self) {
642 drop(self.sender);

Callers 15

build_httpMethod · 0.45
build_s3Method · 0.45
putMethod · 0.45
post_atif_httpFunction · 0.45
acknowledge_if_flushMethod · 0.45
enqueueMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45
run_http_post_endpointFunction · 0.45
run_websocket_endpointFunction · 0.45
run_ndjson_endpointFunction · 0.45

Calls

no outgoing calls