From 0cb5a500366a301f0b3a74750f99f11a17e9ce6b Mon Sep 17 00:00:00 2001 From: andy pan Date: Fri, 6 Jul 2018 14:35:30 +0800 Subject: [PATCH] rename func --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)