1
0
mirror of https://github.com/fumiama/orbyte.git synced 2026-06-05 02:00:30 +08:00

fix: count items

This commit is contained in:
源文雨
2025-05-13 00:52:42 +09:00
parent e8afcce73a
commit 23a2b71205
2 changed files with 10 additions and 13 deletions

View File

@@ -138,12 +138,7 @@ func (b *Item[T]) destroybystat(stat status) {
var v T
b.val = v
}
if stat.hasignored() { // ignore put
runtime.SetFinalizer(b, nil)
b.cfg = nil
return
}
b.pool.put(b)
b.pool.put(b, stat.hasignored())
}
// ManualDestroy item and put it back to pool.