diff --git a/pool_func.go b/pool_func.go index 52e3515..cfcbba5 100644 --- a/pool_func.go +++ b/pool_func.go @@ -62,7 +62,7 @@ type PoolWithFunc struct { once sync.Once } -func (p *PoolWithFunc) MonitorAndClear() { +func (p *PoolWithFunc) monitorAndClear() { go func() { for { time.Sleep(p.expiryDuration)