aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2019-11-05 11:50:03 +1100
committerMatt Joiner <anacrolix@gmail.com>2019-11-05 11:50:03 +1100
commit018ac4c83e6e1b535c82271b1019182895899e49 (patch)
tree488a34ff5da04908347c5180696a339226180ccb
parentOptimize AtomicSet (diff)
downloadstm-018ac4c83e6e1b535c82271b1019182895899e49.tar.gz
stm-018ac4c83e6e1b535c82271b1019182895899e49.tar.xz
No need to reset Tx before putting it in the Pool
-rw-r--r--tx.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index 4b6edf8..30100bf 100644
--- a/tx.go
+++ b/tx.go
@@ -103,7 +103,6 @@ func (tx *Tx) reset() {
}
func (tx *Tx) recycle() {
- tx.reset()
txPool.Put(tx)
}