From b8681e6093e5f818c385f83a91be545cc35e07a9 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Thu, 6 May 2021 13:56:00 -0700 Subject: fix rebase error --- pkg/tcpip/tcpip.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/tcpip/tcpip.go') diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index b39af42c4..7e7415df4 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -37,7 +37,6 @@ import ( "reflect" "strconv" "strings" - "sync/atomic" "time" "gvisor.dev/gvisor/pkg/atomicbitops" @@ -1236,7 +1235,7 @@ func (s *StatCounter) Decrement() { // Value returns the current value of the counter. func (s *StatCounter) Value(name ...string) uint64 { - return atomic.LoadUint64(&s.count) + return s.count.Load() } // IncrementBy increments the counter by v. -- cgit v1.2.3