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

Method load_operation

atomic-repository/src/repository/operation.rs:2760–2770  ·  view source on GitHub ↗
(
        &self,
        operation_id: OperationId,
    )

Source from the content-addressed store, hash-verified

2758 }
2759
2760 pub(super) fn load_operation(
2761 &self,
2762 operation_id: OperationId,
2763 ) -> Result<Operation, RepositoryError> {
2764 let txn = self.pristine.read_txn().map_err(pristine_error)?;
2765 txn.get_operation(operation_id)
2766 .map_err(pristine_error)?
2767 .ok_or_else(|| RepositoryError::InvalidOperation {
2768 message: format!("operation not found: {operation_id}"),
2769 })
2770 }
2771
2772 fn validate_operation_lock(
2773 &self,

Calls 2

read_txnMethod · 0.80
get_operationMethod · 0.45

Tested by

no test coverage detected