Skip to content
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

returning an error if the subprocess failed early #32

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

ulrichard
Copy link
Contributor

Returns an error if the electrsd sub-process failed early.
Without this change, it would end in an infinite loop as described in #31

Copy link
Owner

@RCasatta RCasatta left a comment

Choose a reason for hiding this comment

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

This is nice, I added an issue to implement this also for bitcoind crate rust-bitcoin/bitcoind#50

src/lib.rs Outdated

let client = loop {
if let Some(status) = process.try_wait()? {
debug!("early exit with: {:?}", status);
Copy link
Owner

Choose a reason for hiding this comment

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

What do you think to use warn! or error! instead of debug!?

Copy link
Owner

@RCasatta RCasatta left a comment

Choose a reason for hiding this comment

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

utACK 9b76740

@RCasatta RCasatta merged commit 7124590 into RCasatta:master Feb 16, 2022
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.

None yet

2 participants