Skip to content

Commit 75379a6

Browse files
committed
Merge branch 'main' into develop
2 parents 8b79eb9 + 19bc258 commit 75379a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

counter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var counterPool = &sync.Pool{
3636

3737
// AcquireCounter return a Counter Pointer.
3838
func AcquireCounter() *Counter {
39-
return counterPool.New().(*Counter)
39+
return counterPool.Get().(*Counter)
4040
}
4141

4242
// ReleaseCounter releases a Counter Pointer.

0 commit comments

Comments
 (0)