Skip to content

Conversation

@matheus23
Copy link
Member

@matheus23 matheus23 commented Nov 4, 2025

  • Switches all uses of thiserror in irpc and irpc-iroh to use n0-error

  • Removes the anyhow dependency and replaces all use of it with AnyError/n0-error

  • Self-review

@matheus23 matheus23 self-assigned this Nov 4, 2025
Cargo.toml Outdated
Comment on lines 113 to 115

[patch.crates-io]
iroh = { git = "https://github.com/n0-computer/iroh.git", branch = "main" }
Copy link
Member Author

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.

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()?;
Copy link
Member

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.

Copy link
Member

@Frando Frando left a comment

Choose a reason for hiding this comment

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

Some comments

@Frando Frando force-pushed the matheus23/irpc-n0-error branch from cbd2c2b to d8b213b Compare November 5, 2025 08:27
@matheus23
Copy link
Member Author

One pending thing to figure out here is whether we should revert the example code to using anyhow.

I think so, I'll try to make this change later today.

@rklaehn rklaehn force-pushed the matheus23/irpc-n0-error branch 3 times, most recently from dd759aa to e26f93f Compare November 5, 2025 18:43
anyhow is a dev dependency of both irpc and irpc-iroh because dev deps are
included in examples.
@rklaehn rklaehn force-pushed the matheus23/irpc-n0-error branch from e26f93f to 79adfbb Compare November 5, 2025 18:46
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!).
@ramfox
Copy link
Member

ramfox commented Nov 6, 2025

note: rudi pushed changing the examples back to anyhow!

@ramfox ramfox merged commit c7cce20 into main Nov 6, 2025
16 checks passed
@ramfox ramfox deleted the matheus23/irpc-n0-error branch November 6, 2025 01:01
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.

5 participants