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

Method already_seen

nodedb-array/src/sync/apply.rs:240–242  ·  view source on GitHub ↗
(&self, array: &str, hlc: Hlc)

Source from the content-addressed store, hash-verified

238 }
239
240 fn already_seen(&self, array: &str, hlc: Hlc) -> ArrayResult<bool> {
241 Ok(self.seen.contains(&(array.to_string(), hlc.to_bytes())))
242 }
243
244 fn apply_put(&mut self, op: &ArrayOp) -> ArrayResult<()> {
245 if let Some(err) = self.take_inject() {

Callers 1

apply_opFunction · 0.45

Calls 3

to_stringMethod · 0.80
containsMethod · 0.45
to_bytesMethod · 0.45

Tested by

no test coverage detected