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

Method get_bridge_ref_capture_token

atomic-core/src/pristine/txn/read.rs:3050–3060  ·  view source on GitHub ↗
(
        &self,
        operation: &[u8; 32],
    )

Source from the content-addressed store, hash-verified

3048 }
3049
3050 fn get_bridge_ref_capture_token(
3051 &self,
3052 operation: &[u8; 32],
3053 ) -> PristineResult<Option<[u8; 32]>> {
3054 let table = match self.txn.open_table(BRIDGE_REF_CAPTURE_TOKENS) {
3055 Ok(table) => table,
3056 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(None),
3057 Err(error) => return Err(PristineError::from(error)),
3058 };
3059 Ok(table.get(operation)?.map(|v| *v.value()))
3060 }
3061}
3062
3063impl RefMappingTxnT for ReadTxn {

Callers 2

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected