From 1933478e2e2b753f923f45093f39ac008648ff21 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 18 Jun 2024 01:09:42 +0800 Subject: [PATCH] chore: remove the unused constant of releaseTimeoutCount --- ants.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ants.go b/ants.go index 246d91c..4b61ba2 100644 --- a/ants.go +++ b/ants.go @@ -96,10 +96,7 @@ var ( defaultAntsPool, _ = NewPool(DefaultAntsPoolSize) ) -const ( - nowTimeUpdateInterval = 500 * time.Millisecond - releaseTimeoutCount = 10 -) +const nowTimeUpdateInterval = 500 * time.Millisecond // Logger is used for logging formatted messages. type Logger interface {