From 530fdbb4e05567969468a35c306d754dbd049077 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Thu, 31 Jan 2019 23:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=B6=20Glorify=20go=20in=20the=20light?= =?UTF-8?q?=20of=20golint=20tool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ants.go b/ants.go index d4f4fd3..5d43db0 100644 --- a/ants.go +++ b/ants.go @@ -40,13 +40,13 @@ var ( // Error types for the Ants API. // ErrInvalidPoolSize will be returned when setting a negative number as pool capacity. - ErrInvalidPoolSize = errors.New("invalid size for pool") + ErrInvalidPoolSize = errors.New("invalid size for pool") // ErrInvalidPoolExpiry will be returned when setting a negative number as the periodic duration to purge goroutines. ErrInvalidPoolExpiry = errors.New("invalid expiry for pool") // ErrPoolClosed will be returned when submitting task to a closed pool. - ErrPoolClosed = errors.New("this pool has been closed") + ErrPoolClosed = errors.New("this pool has been closed") // workerChanCap determines whether the channel of a worker should be a buffered channel // to get the best performance, inspired by fasthttp.