-
Notifications
You must be signed in to change notification settings - Fork 627
Optimization for prover #1761
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
base: develop
Are you sure you want to change the base?
Optimization for prover #1761
Changes from all commits
bdf7826
9839bf7
d262a63
dc29c8c
af63bc0
5c2803c
5ae31bc
98be0a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -201,12 +201,20 @@ impl ProvingService for LocalProver { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| error: Some(format!("proving task failed: {}", e)), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ..Default::default() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Err(e) => QueryTaskResponse { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| task_id: req.task_id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status: TaskStatus::Failed, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| error: Some(format!("proving task panicked: {}", e)), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ..Default::default() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Err(e) => { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if e.is_panic() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // simply re-throw panic for any panicking in proving prrocess, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // cause worker loop and the whole prover exit | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| std::panic::resume_unwind(e.into_panic()); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| QueryTaskResponse { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| task_id: req.task_id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| status: TaskStatus::Failed, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| error: Some(format!("proving task panicked: {}", e)), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ..Default::default() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+204
to
+217
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect error message for non-panic JoinError. The Also, minor typo on line 207: "prrocess" → "process". Err(e) => {
if e.is_panic() {
- // simply re-throw panic for any panicking in proving prrocess,
+ // simply re-throw panic for any panicking in proving process,
// cause worker loop and the whole prover exit
std::panic::resume_unwind(e.into_panic());
}
QueryTaskResponse {
task_id: req.task_id,
status: TaskStatus::Failed,
- error: Some(format!("proving task panicked: {}", e)),
+ error: Some(format!("proving task failed: {}", e)),
..Default::default()
}
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return QueryTaskResponse { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.