From 2833ddd71309f64f9e2b3aa394954df08e136ffe Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 11 Mar 2021 11:44:43 +1100 Subject: skip the retry profile Add --- tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tx.go b/tx.go index c064f76..8f70c1b 100644 --- a/tx.go +++ b/tx.go @@ -106,7 +106,7 @@ type txProfileValue struct { // Retry aborts the transaction and retries it when a Var changes. You can return from this method // to satisfy return values, but it should never actually return anything as it panics internally. func (tx *Tx) Retry() interface{} { - retries.Add(txProfileValue{tx, tx.numRetryValues}, 0) + retries.Add(txProfileValue{tx, tx.numRetryValues}, 1) tx.numRetryValues++ panic(retry) panic("unreachable") -- cgit v1.2.3