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

Function make_op

nodedb/src/control/array_sync/op_log.rs:320–334  ·  view source on GitHub ↗
(array: &str, ms: u64)

Source from the content-addressed store, hash-verified

318 }
319
320 fn make_op(array: &str, ms: u64) -> ArrayOp {
321 ArrayOp {
322 header: ArrayOpHeader {
323 array: array.into(),
324 hlc: hlc(ms),
325 schema_hlc: hlc(1),
326 valid_from_ms: 0,
327 valid_until_ms: -1,
328 system_from_ms: ms as i64,
329 },
330 kind: ArrayOpKind::Put,
331 coord: vec![CoordValue::Int64(ms as i64)],
332 attrs: Some(vec![CellValue::Null]),
333 }
334 }
335
336 #[test]
337 fn append_and_len() {

Callers 5

append_and_lenFunction · 0.70
append_idempotentFunction · 0.70
scan_from_filters_belowFunction · 0.70
drop_below_removes_oldFunction · 0.70

Calls 1

hlcFunction · 0.70

Tested by 5

append_and_lenFunction · 0.56
append_idempotentFunction · 0.56
scan_from_filters_belowFunction · 0.56
drop_below_removes_oldFunction · 0.56