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

Function make_partial

nodedb/src/control/request_tracker.rs:127–137  ·  view source on GitHub ↗
(id: u64, data: &str)

Source from the content-addressed store, hash-verified

125 }
126
127 fn make_partial(id: u64, data: &str) -> Response {
128 Response {
129 request_id: RequestId::new(id),
130 status: Status::Partial,
131 attempt: 1,
132 partial: true,
133 payload: Payload::from_vec(data.as_bytes().to_vec()),
134 watermark_lsn: Lsn::ZERO,
135 error_code: None,
136 }
137 }
138
139 #[tokio::test]
140 async fn register_and_complete() {

Callers 1

Calls 2

to_vecMethod · 0.45
as_bytesMethod · 0.45

Tested by 1