aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tx.go b/tx.go
index 4542e61..825ff01 100644
--- a/tx.go
+++ b/tx.go
@@ -11,7 +11,7 @@ import (
type txVar interface {
getValue() *atomic.Value[VarValue]
- changeValue(interface{})
+ changeValue(any)
getWatchers() *sync.Map
getLock() *sync.Mutex
}
@@ -19,7 +19,7 @@ type txVar interface {
// A Tx represents an atomic transaction.
type Tx struct {
reads map[txVar]VarValue
- writes map[txVar]interface{}
+ writes map[txVar]any
watching map[txVar]struct{}
locks txLocks
mu sync.Mutex