remove the Stat
This commit is contained in:
parent
e73321a860
commit
316355a72e
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue