mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/bloombits : add quit channel select
This commit is contained in:
parent
3ed5d5500f
commit
9865f518da
1 changed files with 2 additions and 0 deletions
|
|
@ -586,6 +586,8 @@ func (s *MatcherSession) AllocateSections(bit uint, count int) []uint64 {
|
|||
// bit index to be injected into the processing pipeline.
|
||||
func (s *MatcherSession) DeliverSections(bit uint, sections []uint64, bitsets [][]byte) {
|
||||
select {
|
||||
case <-s.quit:
|
||||
return
|
||||
case s.matcher.deliveries <- &Retrieval{Bit: bit, Sections: sections, Bitsets: bitsets}:
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue