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

Handle pubsub blocks in parallel #891

Merged
merged 4 commits into from
Dec 15, 2020
Merged

Conversation

timvermeulen
Copy link
Contributor

The simplest way to make sure the pubsub message handler doesn't block the polling thread of the chain syncer. I think we should be able to reuse the same channel used by Hello events that are passed to inform_new_head (which is what this PR does).

Closes #877

blockchain/chain_sync/src/sync.rs Outdated Show resolved Hide resolved
blockchain/chain_sync/src/sync.rs Outdated Show resolved Hide resolved
@timvermeulen timvermeulen merged commit 83a86a9 into main Dec 15, 2020
@timvermeulen timvermeulen deleted the tim/parallel-pubsub-events branch December 15, 2020 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parallel pubsub event handling in ChainSyncer
2 participants