From 93533b243ba52f08d5e7216fc809bf38857bd827 Mon Sep 17 00:00:00 2001 From: andy pan Date: Fri, 6 Jul 2018 14:45:35 +0800 Subject: [PATCH] remove unused imports --- ants.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ants.go b/ants.go index 03dd478..78e3b63 100644 --- a/ants.go +++ b/ants.go @@ -25,7 +25,6 @@ package ants import ( "errors" "math" - "runtime" ) const ( @@ -33,11 +32,11 @@ const ( DefaultPoolSize = math.MaxInt32 // DefaultCleanIntervalTime is the interval time to clean up goroutines - DefaultCleanIntervalTime = 30 + DefaultCleanIntervalTime = 10 ) // Init a instance pool when importing ants -var defaultPool, _ = NewPool(DefaultPoolSize, 10) +var defaultPool, _ = NewPool(DefaultPoolSize, DefaultCleanIntervalTime) // Submit submit a task to pool func Submit(task f) error {