Skip to content

Serde_Json error variant#163

Closed
AayushGupta56 wants to merge 2 commits intobitcoindevkit:masterfrom
AayushGupta56:SerdeJson_error_variant
Closed

Serde_Json error variant#163
AayushGupta56 wants to merge 2 commits intobitcoindevkit:masterfrom
AayushGupta56:SerdeJson_error_variant

Conversation

@AayushGupta56
Copy link
Copy Markdown

Addresses #161
This PR replaces .unwrap_or_default() with proper error propagation in submit_package for both blocking and async clients.

Copy link
Copy Markdown
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

Could you give some context on when/how you encountered this?

Comment thread src/lib.rs Outdated
Minreq(::minreq::Error),
/// Error during reqwest HTTP request
#[cfg(feature = "async")]
#[cfg(feature = "reqwest")]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why did you change this ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I guess I did it by mistake, I was just trying something but it didn't worked and I forgot to change it.

@oleonardolima
Copy link
Copy Markdown
Collaborator

Could you give some context on when/how you encountered this?

In #161 we're looking forward to remove some of the existing .unwrap usages.

@luisschwab
Copy link
Copy Markdown
Member

Overridden by #171.

@luisschwab luisschwab closed this Feb 11, 2026
oleonardolima added a commit that referenced this pull request Feb 12, 2026
…mit_package`

d651e71 chore(client): remove `serde_json` unwraps in favor of `Error::SerdeJson` (Luis Schwab)
d7cd704 feat(lib)!: add `Error::SerdeJson` variant (Luis Schwab)
d6a07af chore(deps): bump `electrsd` to v0.36.1 (Luis Schwab)
31a8dc4 chore(ci): fix pins for 1.75.0 MSRV (Luis Schwab)

Pull request description:

  Closes #161.
  Replaces #163.

  This PR adds a new error variant for `serde_json` and removes the lingering unwraps on the `submit_package` methods.

  ### Changelog Notice
  ```
  # Added
  - New `Error::SerdeJson` error variant
  ```

  Also bumps `electrsd` to v0.36.1 and fixes MSRV dependency pinning.

ACKs for top commit:
  oleonardolima:
    ACK d651e71

Tree-SHA512: b011e2bb3fba5eb05ba08c6349c39acef680f29524e6142bb392ecd2257bc51384ccd8a4b98021ee4d24ed26ea99c6857771bd1c57a0c2ca3481ffdd3eebd939
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.

4 participants