async fn commit_transaction(&self) -> core::result::Result<(), StorageError> {
        // The transaction is now complete (or reverted) and therefore we can re-enable
        // the cache cleaning status
        if let Some(cache) = &self.cache {
            cache.enable_clean().await;
        }

        // this retrieves all the trans operations, and "de-activates" the transaction flag
        let ops = self.trans.commit_transaction().await?;
        self.batch_set(ops).await
    }
/// Commit a transaction in the storage layer
Commit a transaction in the storage layer
Commit a transaction in the storage layer
async fn commit_transaction(&self) -> core::result::Result<(), StorageError> {
        // The transaction is now complete (or reverted) and therefore we can re-enable
        // the cache cleaning status
        if let Some(cache) = &self.cache {
            cache.enable_clean().await;
        }
        // this retrieves all the trans operations, and "de-activates" the transaction flag
        let ops = self.trans.commit_transaction().await?;
        self.batch_set(ops).await
    }
async fn commit_transaction ( & self ) -> core :: result :: Result < ( ) , StorageError > { // The transaction is now complete (or reverted) and therefore we can re-enable // the cache cleaning status if let Some ( cache ) = & self . cache { cache . enable_clean ( ) . await ; } // this retrieves all the trans operations, and "de-activates" the transaction flag let ops = self . trans . commit_transaction ( ) . await ? ; self . batch_set ( ops ) . await }
Commit a transaction in the storage layer
Commit a transaction in the storage layer
&self
&self