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

Function id

nodedb/src/control/lease/drain.rs:145–147  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

143 use nodedb_cluster::DescriptorKind;
144
145 fn id(name: &str) -> DescriptorId {
146 DescriptorId::new(1, DescriptorKind::Collection, name.to_string())
147 }
148
149 fn hlc(wall_ns: u64) -> Hlc {
150 Hlc::new(wall_ns, 0)

Calls 1

to_stringMethod · 0.80