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

Function temp_catalog

nodedb-cluster/src/bootstrap/join.rs:370–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368 use std::time::Duration;
369
370 fn temp_catalog() -> (tempfile::TempDir, ClusterCatalog) {
371 let dir = tempfile::tempdir().unwrap();
372 let path = dir.path().join("cluster.redb");
373 let catalog = ClusterCatalog::open(&path).unwrap();
374 (dir, catalog)
375 }
376
377 // ── Pure-function tests ───────────────────────────────────────
378

Callers 1

full_bootstrap_join_flowFunction · 0.70

Calls 3

joinMethod · 0.80
openFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected