(mut self)
| 39 | } |
| 40 | |
| 41 | pub(crate) fn commit(mut self) -> BaseProofsStorageResult<()> { |
| 42 | if let Some(tx) = self.tx.take() { |
| 43 | tx.commit()?; |
| 44 | } |
| 45 | Ok(()) |
| 46 | } |
| 47 | |
| 48 | fn tx_ref(&self) -> BaseProofsStorageResult<&<DatabaseEnv as Database>::TXMut> { |
| 49 | self.tx.as_ref().ok_or(BaseProofsStorageError::BatchSessionClosed) |