Skip to content

Commit d38edf5

Browse files
committed
MR feedback
1 parent 754f39c commit d38edf5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

source/fundamentals/transactions.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ describes these methods:
9595

9696
* - ``and_run()``
9797
- | Runs the given callback, then commits or ends the transaction. If
98-
the callback raises a transient transaction error, the driver retries
99-
the callback. If the callback raises any other error, the driver
100-
ends the transaction and returns the error to the caller. When
101-
you use this method to perform a transaction, the driver automatically
102-
handles any errors, so you can choose to omit error handling code.
98+
the callback raises an error with a ``TRANSIENT_TRANSACTION_ERROR``
99+
label, the driver retries the callback. If the callback raises any
100+
other error, the driver ends the transaction and returns the error
101+
to the caller. When you use this method to perform a transaction,
102+
the driver automatically handles any errors, so you can choose to omit
103+
error handling code.
103104
|
104105
| Because the callback returns a future and can be run multiple
105106
times, the Rust language closure borrowing rules for captured

0 commit comments

Comments
 (0)