From afba560448d98a6bfe5270d5d5a74396af23601e Mon Sep 17 00:00:00 2001 From: andy pan Date: Fri, 6 Jul 2018 15:00:30 +0800 Subject: [PATCH] format codes --- pool.go | 2 +- pool_func.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pool.go b/pool.go index 755e32d..9184c24 100644 --- a/pool.go +++ b/pool.go @@ -96,7 +96,7 @@ func NewPool(size, expiry int) (*Pool, error) { capacity: int32(size), freeSignal: make(chan sig, math.MaxInt32), release: make(chan sig, 1), - expiryDuration: time.Duration(expiry)*time.Second, + expiryDuration: time.Duration(expiry) * time.Second, } p.monitorAndClear() return p, nil diff --git a/pool_func.go b/pool_func.go index f583600..439b0fe 100644 --- a/pool_func.go +++ b/pool_func.go @@ -96,7 +96,7 @@ func NewPoolWithFunc(size, expiry int, f pf) (*PoolWithFunc, error) { capacity: int32(size), freeSignal: make(chan sig, math.MaxInt32), release: make(chan sig, 1), - expiryDuration: time.Duration(expiry)*time.Second, + expiryDuration: time.Duration(expiry) * time.Second, poolFunc: f, } p.MonitorAndClear()