From cc0357f5252666ef67bb8f73f86b47ddbdb245be Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 5 Nov 2019 11:49:42 +1100 Subject: Optimize AtomicSet --- tx.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tx.go') diff --git a/tx.go b/tx.go index beb4cbb..4b6edf8 100644 --- a/tx.go +++ b/tx.go @@ -30,13 +30,6 @@ func (tx *Tx) verify() bool { func (tx *Tx) commit() { for v, val := range tx.writes { v.changeValue(val) - v.watchers.Range(func(k, _ interface{}) bool { - tx := k.(*Tx) - tx.mu.Lock() - tx.cond.Broadcast() - tx.mu.Unlock() - return true - }) } } -- cgit v1.2.3