aboutsummaryrefslogtreecommitdiff
path: root/external_test.go
diff options
context:
space:
mode:
authorChris Wendt <chrismwendt@gmail.com>2022-06-08 03:27:33 -0600
committerChris Wendt <chrismwendt@gmail.com>2022-06-08 03:27:33 -0600
commite6ac933d42b3b4a8ffd891b205ba48f0c1e278a4 (patch)
treee103d0d81145c087011846af75aac7d328b917c1 /external_test.go
parentAtomicSet generic value (diff)
downloadstm-e6ac933d42b3b4a8ffd891b205ba48f0c1e278a4.tar.gz
stm-e6ac933d42b3b4a8ffd891b205ba48f0c1e278a4.tar.xz
replace "interface{}" with "any"
Diffstat (limited to 'external_test.go')
-rw-r--r--external_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/external_test.go b/external_test.go
index a56aeee..abdf544 100644
--- a/external_test.go
+++ b/external_test.go
@@ -132,7 +132,7 @@ func BenchmarkInvertedThunderingHerd(b *testing.B) {
for stm.Atomically(func(tx *stm.Tx) bool {
tx.Assert(tokens.Get(tx) > 0)
tokens.Set(tx, tokens.Get(tx)-1)
- pending.Get(tx).Range(func(i interface{}) bool {
+ pending.Get(tx).Range(func(i any) bool {
ready := i.(*stm.Var[bool])
if !ready.Get(tx) {
ready.Set(tx, true)