From 31c4fd7ec9d8a80202ba446c9087ab3fd30cbe72 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 23 Oct 2019 16:10:34 +1100 Subject: Improve comment on Tx.verify --- tx.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tx.go') diff --git a/tx.go b/tx.go index f63de76..127480e 100644 --- a/tx.go +++ b/tx.go @@ -6,9 +6,7 @@ type Tx struct { writes map[*Var]interface{} } -// verify checks that none of the logged values have changed since the -// transaction began. -// TODO: is pointer equality good enough? probably not, without immutable data +// Check that none of the logged values have changed since the transaction began. func (tx *Tx) verify() bool { for v, version := range tx.reads { v.mu.Lock() -- cgit v1.2.3