MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / response_with_payload

Method response_with_payload

nodedb/src/data/executor/core_loop/response.rs:25–39  ·  view source on GitHub ↗
(
        &self,
        task: &ExecutionTask,
        payload: Vec<u8>,
    )

Source from the content-addressed store, hash-verified

23 }
24
25 pub(in crate::data::executor) fn response_with_payload(
26 &self,
27 task: &ExecutionTask,
28 payload: Vec<u8>,
29 ) -> Response {
30 Response {
31 request_id: task.request_id(),
32 status: Status::Ok,
33 attempt: 1,
34 partial: false,
35 payload: Payload::from_vec(payload),
36 watermark_lsn: self.watermark,
37 error_code: None,
38 }
39 }
40
41 pub(in crate::data::executor) fn response_partial(
42 &self,

Calls 1

request_idMethod · 0.80

Tested by

no test coverage detected