From 39eaaa8a0d7d851d4276acaea7637b3ba4d2c504 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Thu, 23 Nov 2023 14:17:50 +0100 Subject: [PATCH] Clarify wording a bit --- query-engine/driver-adapters/src/proxy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query-engine/driver-adapters/src/proxy.rs b/query-engine/driver-adapters/src/proxy.rs index 694d7368a4c0..c065c8eb0487 100644 --- a/query-engine/driver-adapters/src/proxy.rs +++ b/query-engine/driver-adapters/src/proxy.rs @@ -608,7 +608,7 @@ impl TransactionProxy { /// - If it is polled at least once, `true` will be stored in [`TransactionProxy::closed`] and /// the underlying FFI call will be delivered to JavaScript side in lockstep, so the destructor /// will not attempt rolling the transaction back even if the `commit` future was dropped while - /// waiting on the JavaScript call. + /// waiting on the JavaScript call to complete and deliver response. pub async fn commit(&self) -> quaint::Result<()> { self.closed.store(true, Ordering::Release); self.commit.call(()).await @@ -628,7 +628,7 @@ impl TransactionProxy { /// - If it is polled at least once, `true` will be stored in [`TransactionProxy::closed`] and /// the underlying FFI call will be delivered to JavaScript side in lockstep, so the destructor /// will not attempt rolling back again even if the `rollback` future was dropped while waiting - /// on the JavaScript call. + /// on the JavaScript call to complete and deliver response. pub async fn rollback(&self) -> quaint::Result<()> { self.closed.store(true, Ordering::Release); self.rollback.call(()).await