mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 17:38:07 +08:00
fix(search): BuildIndex concurrency error (#7035)
This commit is contained in:
@ -57,5 +57,7 @@ func (mq *inMemoryMQ[T]) Clear() {
|
||||
}
|
||||
|
||||
func (mq *inMemoryMQ[T]) Len() int {
|
||||
mq.Lock()
|
||||
defer mq.Unlock()
|
||||
return mq.queue.Len()
|
||||
}
|
||||
|
Reference in New Issue
Block a user