Closed StephenCathcart closed 9 months ago
transactionState
Results
Commit
tx.conn.HasFailed()
transactionAlreadyCompletedError
runFailed
result failed
Fix transaction handling [Go]
transactionState
struct to hold error and callbacks that are shared withResults
.Commit
by checking fortx.conn.HasFailed()
before returningtransactionAlreadyCompletedError
.runFailed
variable by deleting it and replacing it with checks fromtransactionState
error.result failed
error when trying to interact with a result that came from a transaction that errored.