mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
add todo for package gpool
This commit is contained in:
parent
d4d66fd529
commit
aceae5eee3
@ -170,6 +170,7 @@ func (p *Pool) checkExpireItems() {
|
|||||||
if r := p.list.PopFront(); r != nil {
|
if r := p.list.PopFront(); r != nil {
|
||||||
item := r.(*poolItem)
|
item := r.(*poolItem)
|
||||||
latestExpire = item.expire
|
latestExpire = item.expire
|
||||||
|
// TODO improve the auto-expiration mechanism of the pool.
|
||||||
if item.expire > timestampMilli {
|
if item.expire > timestampMilli {
|
||||||
p.list.PushFront(item)
|
p.list.PushFront(item)
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user