Skip to content

Serde_Json error variant#163

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

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

Conversation

@AayushGupta56
Copy link

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

Copy link
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?

src/lib.rs Outdated
Minreq(::minreq::Error),
/// Error during reqwest HTTP request
#[cfg(feature = "async")]
#[cfg(feature = "reqwest")]
Copy link
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
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
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.

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