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

Method put

nodedb/src/data/executor/dispatch/array/tests_dispatch.rs:130–138  ·  view source on GitHub ↗
(&mut self, aid: &ArrayId, cells: Vec<ArrayPutCell>, lsn: u64)

Source from the content-addressed store, hash-verified

128 }
129
130 fn put(&mut self, aid: &ArrayId, cells: Vec<ArrayPutCell>, lsn: u64) {
131 let bytes = zerompk::to_msgpack_vec(&cells).unwrap();
132 let r = self.send(ArrayOp::Put {
133 array_id: aid.clone(),
134 cells_msgpack: bytes,
135 wal_lsn: lsn,
136 });
137 assert_eq!(r.status, Status::Ok, "put failed: {r:?}");
138 }
139
140 fn flush(&mut self, aid: &ArrayId) {
141 let r = self.send(ArrayOp::Flush {

Calls 2

sendMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected