Resolve the latest manifest hash for an external session ID.
(&self, session_id: &str)
| 597 | |
| 598 | /// Resolve the latest manifest hash for an external session ID. |
| 599 | pub fn get_session_head(&self, session_id: &str) -> Result<Option<Hash>, RepositoryError> { |
| 600 | let txn = self |
| 601 | .pristine |
| 602 | .read_txn() |
| 603 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 604 | txn.get_session_head(session_id) |
| 605 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 606 | } |
| 607 | |
| 608 | /// Store a session manifest received from another repository. |
| 609 | /// |