core/filtermaps: use buffered channel to avoid blocking

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-10-23 06:35:58 +00:00
parent 116c916753
commit 95b33bd937

View file

@ -143,7 +143,7 @@ func (f *FilterMaps) SetBlockProcessing(blockProcessing bool) {
// latest targetView.
func (f *FilterMaps) WaitIdle() {
for {
ch := make(chan bool)
ch := make(chan bool, 1) // buffered so the indexer response can't block
select {
case f.waitIdleCh <- ch:
if <-ch {