This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pow: replace the thread-base mining loop with a future-based mining worker #7060
pow: replace the thread-base mining loop with a future-based mining worker #7060
Changes from 12 commits
2f4eefc
29e54c9
46624de
707c77f
cb7c9de
7dff4f7
5a8c80f
6a26f49
2577b2c
382a96b
17cf866
3ed915f
edb6f6e
1cfb95c
370217f
55eaa73
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use a
async
block here, you don't need theEither
and probably make the code much easier to follow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had some lifetime issues, but the main problem removing the
Either
would be the additional clones. For example, if I change the whole block intoasync
, I'd have to clonesync_oracle
,inherent_data_providers
,algorithm
and some other variables. With the current design they don't have to be cloned at all.