exit BatchedSubManyEose() immediately as the context expires.

I'm not sure about this, but seems to work.
This commit is contained in:
fiatjaf 2025-04-06 09:40:53 -03:00
parent bba332aea6
commit 05e2018d3a

View File

@ -777,9 +777,10 @@ func (pool *SimplePool) BatchedSubManyEose(
select {
case res <- ie:
case <-ctx.Done():
wg.Done()
return
}
}
wg.Done()
}(df)
}