diff options
| author | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 03:27:33 -0600 |
|---|---|---|
| committer | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 03:27:33 -0600 |
| commit | e6ac933d42b3b4a8ffd891b205ba48f0c1e278a4 (patch) | |
| tree | e103d0d81145c087011846af75aac7d328b917c1 /tx.go | |
| parent | AtomicSet generic value (diff) | |
| download | stm-e6ac933d42b3b4a8ffd891b205ba48f0c1e278a4.tar.gz stm-e6ac933d42b3b4a8ffd891b205ba48f0c1e278a4.tar.xz | |
replace "interface{}" with "any"
Diffstat (limited to '')
| -rw-r--r-- | tx.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
