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

feat(raiko): put the tasks that cannot run in parallel into pending list #358

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

smtmfft
Copy link
Contributor

@smtmfft smtmfft commented Sep 5, 2024

image

Signed-off-by: smtmfft <smtm@taiko.xyz>
host/src/proof.rs Outdated Show resolved Hide resolved
host/src/proof.rs Outdated Show resolved Hide resolved
smtmfft and others added 2 commits September 9, 2024 15:22
Co-authored-by: Petar Vujović <petarvujovic98@gmail.com>
Co-authored-by: Petar Vujović <petarvujovic98@gmail.com>
opts,
chain_specs,
running_tasks,
pending_tasks,
receiver,
Copy link
Contributor

Choose a reason for hiding this comment

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

In Rust, we usually use rx and tx to replace receiver and sender.

@@ -146,6 +146,7 @@ pub struct ProverState {
pub enum Message {
Cancel(TaskDescriptor),
Task(ProofRequest),
TaskComplete(ProofRequest),
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use oneshot channel to notify the watcher the result of tasks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean notify one-shot channel & let it send task in??

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.

3 participants