diff options
author | Matt Joiner <anacrolix@gmail.com> | 2021-09-04 21:09:25 +1000 |
---|---|---|
committer | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 03:02:44 -0600 |
commit | 8d82a394042feb858f8b8b40f199f9ede5cc1b83 (patch) | |
tree | bfa5db946ca7ccb8d2c6cdf0f2e63c97382e90fc /tx.go | |
parent | BIG change: generic Var[T], txVar, etc. (diff) | |
download | stm-8d82a394042feb858f8b8b40f199f9ede5cc1b83.tar.gz stm-8d82a394042feb858f8b8b40f199f9ede5cc1b83.tar.xz |
Make Operation generic
From https://github.com/anacrolix/stm/commit/80e033aa1f2218b83fb5891671ed795de72e19d5
Diffstat (limited to 'tx.go')
-rw-r--r-- | tx.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -114,7 +114,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{} { +func (tx *Tx) Retry() struct{} { retries.Add(txProfileValue{tx, tx.numRetryValues}, 1) tx.numRetryValues++ panic(retry) |