optimization

This commit is contained in:
Andy Pan 2018-07-06 20:44:10 +08:00
parent a2fbed1900
commit 9c4ec3fe31
1 changed files with 1 additions and 1 deletions

View File

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