diff options
author | Matt Joiner <anacrolix@gmail.com> | 2019-11-05 11:50:03 +1100 |
---|---|---|
committer | Matt Joiner <anacrolix@gmail.com> | 2019-11-05 11:50:03 +1100 |
commit | 018ac4c83e6e1b535c82271b1019182895899e49 (patch) | |
tree | 488a34ff5da04908347c5180696a339226180ccb | |
parent | Optimize AtomicSet (diff) | |
download | stm-018ac4c83e6e1b535c82271b1019182895899e49.tar.gz stm-018ac4c83e6e1b535c82271b1019182895899e49.tar.xz |
No need to reset Tx before putting it in the Pool
-rw-r--r-- | tx.go | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -103,7 +103,6 @@ func (tx *Tx) reset() { } func (tx *Tx) recycle() { - tx.reset() txPool.Put(tx) } |