-
Notifications
You must be signed in to change notification settings - Fork 19
app_store: always respond with error; use process_macros #522
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
Conversation
@bitful-pannul ptal and in particular please look at I'm also not certain that the |
println!("{error_message}"); | ||
Response::new() | ||
.body(AppStoreResponse::SendError(error_message)) | ||
.send() | ||
.unwrap(); | ||
} | ||
Ok(message) => { | ||
if let Err(e) = handle_message(&our, &mut state, &mut http_server, &message) { | ||
println!("error handling message: {:?}", e); | ||
let error_message = format!("error handling message: {e:?}"); | ||
println!("{error_message}"); |
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.
are we sure we want to print with full vebosity here? I'll test with some basic interactions to see if it doesn't muddle up terminal too much
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.
Not sure about it. Previous behavior was verbosity 0, so just maintaining that. Happy to change.
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 set it it to verbosity 1 and removed the response, it's not really ever hit or listened to. Added some clarifications to the verbosity prints of chain and downloads so one knows where they come from.
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.
process_macros are sick!
Ty @bitful-pannul 🚀 |
Problem
kit
Solution
Testing
kit r
hangs because f9f9ce8 and earlier had a bug and app_store does not issue a Response and so HTTP server never issues an HTTP Response and sokit
hangs.Docs Update
None
Notes
process_macros required some reworking of variant names. Rust compiler got mad about
::Error
variants alongside theTryFrom
type Error
definitions in process_macros (whcih are required for TryFrom). Solved by changing::Error
variant names to::Err
. We should probably document this somewhere.