-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore(host): Replace anyhow with thiserror #1093
base: main
Are you sure you want to change the base?
Conversation
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.
smol style nit
bin/host/src/server.rs
Outdated
#[derive(Debug, thiserror::Error)] | ||
enum PreimageServerError { | ||
#[error("Failed to serve preimage request: {0}")] | ||
PreimageRequestFailed(PreimageOracleError), | ||
#[error("Failed to route hint: {0}")] | ||
RouteHintFailed(PreimageOracleError), | ||
#[error("Join error: {0}")] | ||
ExecutionError(#[from] tokio::task::JoinError), | ||
} |
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.
this is used it pub api and should also be pub
a one-line doc also wouldn't hurt here
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.
Agree with @mattsse here
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.
Alright, I'll make these changes.
4071026
to
9354df8
Compare
Will it be okay to allow |
This PR is a work in progress addressing #916.
I am aware that some of the changes in this PR introduce breaking changes in other parts of the workspace. I created this PR to take reviews on whether my approach looks good before proceeding further. Please let me know if these changes look good to you.