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

Function put_op

nodedb/tests/array_cluster_sync.rs:42–56  ·  view source on GitHub ↗
(array: &str, coord_x: i64, ms: u64)

Source from the content-addressed store, hash-verified

40}
41
42fn put_op(array: &str, coord_x: i64, ms: u64) -> ArrayOp {
43 ArrayOp {
44 header: ArrayOpHeader {
45 array: array.into(),
46 hlc: hlc(ms, 1),
47 schema_hlc: hlc(1, 1),
48 valid_from_ms: 0,
49 valid_until_ms: -1,
50 system_from_ms: ms as i64,
51 },
52 kind: ArrayOpKind::Put,
53 coord: vec![CoordValue::Int64(coord_x)],
54 attrs: Some(vec![CellValue::Null]),
55 }
56}
57
58fn dummy_snap(array: &str, frontier: Hlc) -> TileSnapshot {
59 TileSnapshot {

Calls 1

hlcFunction · 0.50

Tested by

no test coverage detected