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

Function temp_catalog

nodedb-cluster/src/bootstrap/bootstrap_fn.rs:100–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 use std::time::Duration;
99
100 fn temp_catalog() -> (tempfile::TempDir, ClusterCatalog) {
101 let dir = tempfile::tempdir().unwrap();
102 let path = dir.path().join("cluster.redb");
103 let catalog = ClusterCatalog::open(&path).unwrap();
104 (dir, catalog)
105 }
106
107 #[test]
108 fn bootstrap_creates_cluster() {

Callers 1

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by 1