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()