MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_session_head

Method get_session_head

atomic-repository/src/repository/changes.rs:365–372  ·  view source on GitHub ↗

Resolve the latest manifest hash for an external session ID.

(&self, session_id: &str)

Source from the content-addressed store, hash-verified

363
364 /// Resolve the latest manifest hash for an external session ID.
365 pub fn get_session_head(&self, session_id: &str) -> Result<Option<Hash>, RepositoryError> {
366 let txn = self
367 .pristine
368 .read_txn()
369 .map_err(|e| RepositoryError::Database(e.to_string()))?;
370 txn.get_session_head(session_id)
371 .map_err(|e| RepositoryError::Database(e.to_string()))
372 }
373
374 /// Store a session manifest received from another repository.
375 ///

Callers 1

Calls 1

read_txnMethod · 0.80

Tested by

no test coverage detected