remove the Stat

This commit is contained in:
lionsoul2014 2025-12-05 12:49:14 +08:00
parent e73321a860
commit 316355a72e
1 changed files with 0 additions and 6 deletions

View File

@ -58,12 +58,6 @@ func NewSearcherPool(config *Config) (*SearcherPool, error) {
}, nil }, nil
} }
// Stat return the stat {loanCount, leftCount} info of the pool
func (sp *SearcherPool) Stat() (int, int) {
loanCount := int(atomic.LoadInt32(&sp.loanCount))
return loanCount, len(sp.pool)
}
// get the loaned count // get the loaned count
func (sp *SearcherPool) LoanCount() int { func (sp *SearcherPool) LoanCount() int {
return int(atomic.LoadInt32(&sp.loanCount)) return int(atomic.LoadInt32(&sp.loanCount))