Skip to content

Commit

Permalink
Clarify wording a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Nov 23, 2023
1 parent a66a019 commit 5ab9f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query-engine/driver-adapters/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5ab9f4f

Please sign in to comment.