From 76cc065dbc622a70babbc0c2a3d17f2fc944e89e Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 4 Aug 2018 10:36:30 +0800 Subject: [PATCH] optimization --- ants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants.go b/ants.go index 2e018e8..3cbd5b6 100644 --- a/ants.go +++ b/ants.go @@ -35,12 +35,12 @@ const ( DefaultCleanIntervalTime = 10 ) -// Init a instance pool when importing ants var ( defaultAntsPool *Pool err error ) +// Init a instance pool when importing ants func init() { defaultAntsPool, err = NewPool(DefaultAntsPoolSize) if err != nil {