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

Function send_raw

nodedb-test-support/src/tx_batch_helpers.rs:82–94  ·  view source on GitHub ↗
(
    core: &mut CoreLoop,
    tx: &mut Producer<BridgeRequest>,
    rx: &mut Consumer<BridgeResponse>,
    plan: PhysicalPlan,
)

Source from the content-addressed store, hash-verified

80}
81
82pub fn send_raw(
83 core: &mut CoreLoop,
84 tx: &mut Producer<BridgeRequest>,
85 rx: &mut Consumer<BridgeResponse>,
86 plan: PhysicalPlan,
87) -> nodedb::bridge::envelope::Response {
88 tx.try_push(BridgeRequest {
89 inner: make_request(plan),
90 })
91 .unwrap();
92 core.tick();
93 rx.try_pop().unwrap().inner
94}
95
96pub fn payload_json(payload: &[u8]) -> String {
97 nodedb::data::executor::response_codec::decode_payload_to_json(payload)

Callers 4

assert_kv_absentFunction · 0.70
assert_doc_absentFunction · 0.70
assert_edge_absentFunction · 0.70
assert_ts_countFunction · 0.70

Calls 4

try_pushMethod · 0.80
try_popMethod · 0.80
make_requestFunction · 0.70
tickMethod · 0.45

Tested by

no test coverage detected