Skip to content

Only import lightning::io if futures are enabled #2050

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

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

douglaz
Copy link
Contributor

@douglaz douglaz commented Feb 24, 2023

Another option is to import under #[cfg(feature = "futures")]

Rationale: avoids unnecessary warnings on check and clippy with default features

@codecov-commenter
Copy link

Codecov Report

Base: 87.33% // Head: 87.32% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (19ef2bb) compared to base (46fd703).
Patch has no changes to coverable lines.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2050      +/-   ##
==========================================
- Coverage   87.33%   87.32%   -0.01%     
==========================================
  Files         101      101              
  Lines       44364    44364              
  Branches    44364    44364              
==========================================
- Hits        38747    38743       -4     
- Misses       5617     5621       +4     
Impacted Files Coverage Δ
lightning-background-processor/src/lib.rs 81.67% <ø> (ø)
lightning/src/chain/onchaintx.rs 85.61% <0.00%> (-0.69%) ⬇️
lightning/src/ln/functional_tests.rs 97.27% <0.00%> (-0.02%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Thanks!

@douglaz
Copy link
Contributor Author

douglaz commented Feb 24, 2023

@TheBlueMatt the macos builds failed, but I don't see an error. Do you know what happened?

@TheBlueMatt
Copy link
Collaborator

Hmm, yea, I dont see an error there, either, I think its just CI being flaky as usual. I kicked those jobs so they should retest.

@wpaulino wpaulino merged commit 22d1bab into lightningdevkit:main Feb 24, 2023
@douglaz douglaz deleted the import-lightning-io-futures branch February 24, 2023 20:10
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