-
Notifications
You must be signed in to change notification settings - Fork 6
feat!: Switch from anyhow and thiserror to n0-error
#78
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
Cargo.toml
Outdated
|
|
||
| [patch.crates-io] | ||
| iroh = { git = "https://github.com/n0-computer/iroh.git", branch = "main" } |
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 think iroh needs to be released before this can be merged.
irpc-iroh/examples/0rtt.rs
Outdated
| info!("0-RTT not possible from our side"); | ||
| let fut: future::Boxed<bool> = Box::pin(async { true }); | ||
| let conn = connecting.await?; | ||
| let conn = connecting.await.anyerr()?; |
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.
Once n0-computer/iroh#3556 is merged the anyerr can be removed.
Frando
left a comment
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.
Some comments
cbd2c2b to
d8b213b
Compare
|
One pending thing to figure out here is whether we should revert the example code to using I think so, I'll try to make this change later today. |
dd759aa to
e26f93f
Compare
anyhow is a dev dependency of both irpc and irpc-iroh because dev deps are included in examples.
e26f93f to
79adfbb
Compare
Based on #81 With the 0rtt status being accessible from the connection directly, we can just move this into the `RemoteConnection` abstraction, making working with 0rtt requests simpler for implementors (see changes to the 0rtt example!).
|
note: rudi pushed changing the examples back to anyhow! |
Switches all uses of
thiserrorinirpcandirpc-irohto usen0-errorRemoves the
anyhowdependency and replaces all use of it withAnyError/n0-errorSelf-review