optimization

This commit is contained in:
Andy Pan 2018-08-04 10:36:30 +08:00
parent bb81602342
commit 76cc065dbc
1 changed files with 1 additions and 1 deletions

View File

@ -35,12 +35,12 @@ const (
DefaultCleanIntervalTime = 10 DefaultCleanIntervalTime = 10
) )
// Init a instance pool when importing ants
var ( var (
defaultAntsPool *Pool defaultAntsPool *Pool
err error err error
) )
// Init a instance pool when importing ants
func init() { func init() {
defaultAntsPool, err = NewPool(DefaultAntsPoolSize) defaultAntsPool, err = NewPool(DefaultAntsPoolSize)
if err != nil { if err != nil {