MCPcopy Create free account
hub / github.com/cartesiancs/vessel / insert

Method insert

apps/server/src/flow/binary_store.rs:28–32  ·  view source on GitHub ↗
(&self, data: Vec<u8>)

Source from the content-addressed store, hash-verified

26 }
27
28 pub fn insert(&self, data: Vec<u8>) -> Uuid {
29 let id = Uuid::new_v4();
30 self.store.insert(id, (Instant::now(), data));
31 id
32 }
33
34 pub fn remove(&self, id: &Uuid) -> Option<Vec<u8>> {
35 self.store.remove(id).map(|(_, (_, data))| data)

Callers 15

write_listen_addressFunction · 0.80
start_server_sidecarFunction · 0.80
handle_server_controlFunction · 0.80
insert_with_senderMethod · 0.80
runMethod · 0.80
set_variableMethod · 0.80
newMethod · 0.80
startMethod · 0.80
executeMethod · 0.80
start_triggerMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected