mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/bloombits/matcher | add quit channel instead of kill channel
This commit is contained in:
parent
9865f518da
commit
c199a5134c
1 changed files with 2 additions and 1 deletions
|
|
@ -413,7 +413,8 @@ func (m *Matcher) distributor(dist chan *request, session *MatcherSession) {
|
|||
return
|
||||
}
|
||||
shutdown = nil
|
||||
|
||||
case <-session.quit:
|
||||
return
|
||||
case req := <-dist:
|
||||
// New retrieval request arrived to be distributed to some fetcher process
|
||||
queue := requests[req.bit]
|
||||
|
|
|
|||
Loading…
Reference in a new issue