-
Notifications
You must be signed in to change notification settings - Fork 108
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
Remove task trait #439
Remove task trait #439
Conversation
have an error with lifetime of &self with executor.spawn_blocking
ffdb8b0
to
3ba33f1
Compare
aa222d2
to
49682b0
Compare
Fix hanging test
80d0691
to
55d7299
Compare
@@ -260,24 +251,19 @@ where | |||
|
|||
let (tx, rx) = oneshot::channel(); | |||
self.build_complete = Some(rx); | |||
let args = BuildArguments { |
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.
I imagined that it would be PayloadGenerator the one spawning the job instead of the PayloadBuilder impl.
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.
I could move this too into the OpPayloadBuilderVanilla.
I will add config and cancel to the try_build and then see if we could refactor this somehow.
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.
I could move this too into the OpPayloadBuilderVanilla.
Forget about the highlighted line, I could not highlight the correct part of the code since it was not modified.
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.
Seems like i read initial message wrong.
You man to move spawning into new_payload_job of BlockPayloadJobGenerator, right?
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.
Ideally i would change interface in this place a bit.
I would like to see the following:
Instead of resolving per-job we would me payload resolving logic into BlockPayloadJobGenerator
The BlockPayloadJobGenerator
would coordinate all BlockPayloadJob
spawned for this payload building and will ultimately return response to PayloadBuilderService
Will do it differently on top of #443 chain |
π Summary
Could be merged after #436
Closes #428
π‘ Motivation and Context
β I have completed the following steps:
make lint
make test