From aceae5eee3d66f736285e6cab41dd7027e8f4a84 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 22 Jun 2020 20:08:27 +0800 Subject: [PATCH] add todo for package gpool --- container/gpool/gpool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/container/gpool/gpool.go b/container/gpool/gpool.go index 4e4d5d816..3248331e3 100644 --- a/container/gpool/gpool.go +++ b/container/gpool/gpool.go @@ -170,6 +170,7 @@ func (p *Pool) checkExpireItems() { if r := p.list.PopFront(); r != nil { item := r.(*poolItem) latestExpire = item.expire + // TODO improve the auto-expiration mechanism of the pool. if item.expire > timestampMilli { p.list.PushFront(item) break