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

Function put

nodedb/src/engine/graph/edge_store/cascade.rs:95–106  ·  view source on GitHub ↗
(store: &EdgeStore, clock: &OrdinalClock, src: &str, label: &str, dst: &str, p: &[u8])

Source from the content-addressed store, hash-verified

93 }
94
95 fn put(store: &EdgeStore, clock: &OrdinalClock, src: &str, label: &str, dst: &str, p: &[u8]) {
96 let ord = clock.next_ordinal();
97 store
98 .put_edge_versioned(
99 EdgeRef::new(T, COLL, src, label, dst),
100 p,
101 ord,
102 ord,
103 i64::MAX,
104 )
105 .unwrap();
106 }
107
108 #[test]
109 fn delete_edges_for_node_soft_deletes_all_incident() {

Calls 2

next_ordinalMethod · 0.80
put_edge_versionedMethod · 0.80