add todo for package gpool

This commit is contained in:
John 2020-06-22 20:08:27 +08:00
parent d4d66fd529
commit aceae5eee3

View File

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