diff --git a/query-engine/driver-adapters/src/proxy.rs b/query-engine/driver-adapters/src/proxy.rs index 000203c0d228..c3d5a3eaf037 100644 --- a/query-engine/driver-adapters/src/proxy.rs +++ b/query-engine/driver-adapters/src/proxy.rs @@ -600,7 +600,7 @@ impl TransactionProxy { /// so the destructor will ensure the transaction is closed even if the future is dropped. pub async fn commit(&self) -> quaint::Result<()> { let result = self.commit.call(()).await; - self.closed.swap(true, Ordering::Release); + self.closed.store(true, Ordering::Release); result } @@ -610,7 +610,7 @@ impl TransactionProxy { /// so the destructor will ensure the transaction is closed even if the future is dropped. pub async fn rollback(&self) -> quaint::Result<()> { let result = self.rollback.call(()).await; - self.closed.swap(true, Ordering::Release); + self.closed.store(true, Ordering::Release); result } }