Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/bloombits: use single channel for shutdown #20878

Merged
merged 5 commits into from
Jul 29, 2020
Merged

Conversation

ucwong
Copy link
Contributor

@ucwong ucwong commented Apr 3, 2020

No description provided.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it makes sense to me, what do you say @rjl493456442 ?

Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fjl
Copy link
Contributor

fjl commented Apr 7, 2020

I think it would be better to remove the kill channel instead. It would be nice to know why bloombits requires a two-stage shutdown. We can usually make do with just one quit channel.

@fjl fjl changed the title core/bloombits/matcher : Call stop timer if return before timeout core/bloombits: call stop timer if return before timeout Apr 7, 2020
core/bloombits/matcher.go Outdated Show resolved Hide resolved
@ucwong ucwong requested a review from fjl April 22, 2020 01:40
@ucwong ucwong changed the title core/bloombits: call stop timer if return before timeout core/bloombits: remove kill channel for shutting down, using quit channel only Apr 28, 2020
@fjl fjl changed the title core/bloombits: remove kill channel for shutting down, using quit channel only core/bloombits: use single channel for shutdown Jul 28, 2020
@fjl fjl merged commit 9e04c5e into ethereum:master Jul 29, 2020
enriquefynn pushed a commit to enriquefynn/go-ethereum that referenced this pull request Mar 10, 2021
This replaces the two-stage shutdown scheme with the one we
use almost everywhere else: a single quit channel signalling
termination.

Co-authored-by: Felix Lange <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants