diff options
| author | Matt Joiner <anacrolix@gmail.com> | 2021-03-11 11:44:43 +1100 |
|---|---|---|
| committer | Matt Joiner <anacrolix@gmail.com> | 2021-03-11 11:44:43 +1100 |
| commit | 2833ddd71309f64f9e2b3aa394954df08e136ffe (patch) | |
| tree | 1dea27fa11f8352c985f14096a06ebe292d861f8 | |
| parent | Add AtomicModify (diff) | |
| download | stm-2833ddd71309f64f9e2b3aa394954df08e136ffe.tar.gz stm-2833ddd71309f64f9e2b3aa394954df08e136ffe.tar.xz | |
skip the retry profile Add
| -rw-r--r-- | tx.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |
