From 53b98cfddef7afcb79d8a1b35fb186b58426c1d4 Mon Sep 17 00:00:00 2001 From: Chris Wendt Date: Wed, 8 Jun 2022 01:35:20 -0600 Subject: use generic atomic --- funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'funcs.go') diff --git a/funcs.go b/funcs.go index 8694eb4..53975e0 100644 --- a/funcs.go +++ b/funcs.go @@ -105,7 +105,7 @@ retry: // AtomicGet is a helper function that atomically reads a value. func AtomicGet(v *Var) interface{} { - return v.value.Load().(VarValue).Get() + return v.value.Load().Get() } // AtomicSet is a helper function that atomically writes a value. -- cgit v1.2.3