From 316355a72e48f33504f6ae54e6b240744b85f681 Mon Sep 17 00:00:00 2001 From: lionsoul2014 Date: Fri, 5 Dec 2025 12:49:14 +0800 Subject: [PATCH] remove the Stat --- binding/golang/service/searcher_pool.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/binding/golang/service/searcher_pool.go b/binding/golang/service/searcher_pool.go index 31076e3..30982ea 100644 --- a/binding/golang/service/searcher_pool.go +++ b/binding/golang/service/searcher_pool.go @@ -58,12 +58,6 @@ func NewSearcherPool(config *Config) (*SearcherPool, error) { }, 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 func (sp *SearcherPool) LoanCount() int { return int(atomic.LoadInt32(&sp.loanCount))