(&self, sha: &str)
| 3019 | } |
| 3020 | |
| 3021 | fn has_git_commit_closure(&self, sha: &str) -> PristineResult<bool> { |
| 3022 | let table = match self.txn.open_table(GIT_COMMIT_CLOSURES) { |
| 3023 | Ok(table) => table, |
| 3024 | Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false), |
| 3025 | Err(error) => return Err(PristineError::from(error)), |
| 3026 | }; |
| 3027 | Ok(table.get(sha)?.is_some()) |
| 3028 | } |
| 3029 | } |
| 3030 | |
| 3031 | impl BridgeEventCaptureTxnT for ReadTxn { |