diff --git a/pool.go b/pool.go index ef03d8a..c94e5e8 100644 --- a/pool.go +++ b/pool.go @@ -61,7 +61,7 @@ type Pool struct { once sync.Once } -func (p *Pool) MonitorAndClear() { +func (p *Pool) monitorAndClear() { go func() { for { time.Sleep(p.expiryDuration)