From bf45e5d680bcbd1856ce636c730b0ee1c6565ddb Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Fri, 20 Dec 2024 14:42:36 +0100 Subject: [PATCH] chore: remove begin_sub_operation --- lib/es-entity/src/operation.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/es-entity/src/operation.rs b/lib/es-entity/src/operation.rs index 6cb736d2..21a8c1a9 100644 --- a/lib/es-entity/src/operation.rs +++ b/lib/es-entity/src/operation.rs @@ -48,11 +48,4 @@ impl<'t> DbOp<'t> { self.tx.commit().await?; Ok(()) } - - pub async fn begin_sub_operation(&'t mut self) -> Result, sqlx::Error> { - use sqlx::Acquire; - - let tx = self.tx.begin().await?; - Ok(Self::new(tx, self.now)) - } }