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

Function open_credentials

nodedb/tests/surrogate_pk.rs:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14use nodedb_types::Surrogate;
15
16fn open_credentials() -> (tempfile::TempDir, Arc<CredentialStore>) {
17 let dir = tempfile::tempdir().unwrap();
18 let creds = Arc::new(CredentialStore::open(&dir.path().join("system.redb")).unwrap());
19 (dir, creds)
20}
21
22fn fresh_registry() -> SurrogateRegistryHandle {
23 Arc::new(RwLock::new(SurrogateRegistry::new()))

Calls 3

joinMethod · 0.80
openFunction · 0.70
pathMethod · 0.45

Tested by

no test coverage detected