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

Method take

nodedb/src/control/backup/state.rs:71–74  ·  view source on GitHub ↗
(&self, conn_id: u64)

Source from the content-addressed store, hash-verified

69 }
70
71 pub fn take(&self, conn_id: u64) -> Option<RestorePending> {
72 let mut g = self.inner.lock().expect("RestoreState poisoned");
73 g.remove(&conn_id)
74 }
75
76 pub fn cancel(&self, conn_id: u64) {
77 let _ = self.take(conn_id);

Callers 15

createMethod · 0.45
query_changesMethod · 0.45
day_of_yearFunction · 0.45
flushMethod · 0.45
cancelMethod · 0.45
append_then_takeFunction · 0.45
eval_aggregationFunction · 0.45
dropMethod · 0.45
takeFunction · 0.45
discardFunction · 0.45

Calls 3

lockMethod · 0.80
expectMethod · 0.45
removeMethod · 0.45

Tested by 1

append_then_takeFunction · 0.36