Skip to content

feat: refactored coroutine pipeline so nothing can get stuck#166

Merged
CluEleSsUK merged 3 commits into
mainfrom
fix/stream-blockages
Oct 13, 2025
Merged

feat: refactored coroutine pipeline so nothing can get stuck#166
CluEleSsUK merged 3 commits into
mainfrom
fix/stream-blockages

Conversation

@CluEleSsUK
Copy link
Copy Markdown
Contributor

  • added lots of gucci comments
  • nearly lost my mind understanding async rust

- added lots of gucci comments
- nearly lost my mind understanding async rust
.signer
.sign(&solver, &s.chain_state.swap_params)
.await
.context("signing failed somehow")?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we get any meaningful error messages that we can log here to help with debugging? @CluEleSsUK

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, this .context() call actually wraps the original error, so you get all the original messages too, e.g. https://docs.rs/anyhow/latest/anyhow/trait.Context.html

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@najienka najienka self-requested a review October 13, 2025 17:09
@CluEleSsUK CluEleSsUK merged commit a3d20f9 into main Oct 13, 2025
9 checks passed
@CluEleSsUK CluEleSsUK deleted the fix/stream-blockages branch October 13, 2025 17:21
use crate::chain_state::NetworkBus;
use crate::chain_state_pending::{RequestId, Verification};
use crate::chain_state_resolver::ChainStateResolver;
use crate::app::App;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a terrible name for a crate in a repo with multiple binaries.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it’s a module name within a crate, not a crate name.
Have used it as a naming convention for some other bins, but open to other suggestions

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use crate::app::Verifier would probably be clearer.

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.

3 participants