aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
authorChris Wendt <chrismwendt@gmail.com>2022-06-08 03:16:29 -0600
committerChris Wendt <chrismwendt@gmail.com>2022-06-08 03:16:29 -0600
commitc20652df23ad18a0ae30b27a055a71aabd2f581d (patch)
tree35efdfb8987fc99c8ebbb5d2ce76bc1d0c04ba1a /tx.go
parentuse time.Since (diff)
downloadstm-c20652df23ad18a0ae30b27a055a71aabd2f581d.tar.gz
stm-c20652df23ad18a0ae30b27a055a71aabd2f581d.tar.xz
remove unreachable code
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index 2020308..4542e61 100644
--- a/tx.go
+++ b/tx.go
@@ -118,7 +118,6 @@ func (tx *Tx) Retry() struct{} {
retries.Add(txProfileValue{tx, tx.numRetryValues}, 1)
tx.numRetryValues++
panic(retry)
- panic("unreachable")
}
// Assert is a helper function that retries a transaction if the condition is