(
&self,
operation: &[u8; 32],
)
| 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 | |
| 3063 | impl RefMappingTxnT for ReadTxn { |
no test coverage detected