Skip to content

rustfmt: Run on the routing directory (2/3) #3337

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Sep 24, 2024

Based on #3336.

This is PR 2/3, just formatting router.rs.

Followups: #3338.

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.77%. Comparing base (053281f) to head (947cf72).
Report is 1175 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3337      +/-   ##
==========================================
+ Coverage   89.66%   89.77%   +0.11%     
==========================================
  Files         126      126              
  Lines      103226   105591    +2365     
  Branches   103226   105591    +2365     
==========================================
+ Hits        92555    94796    +2241     
- Misses       7954     8089     +135     
+ Partials     2717     2706      -11     
Flag Coverage Δ
89.77% <ø> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tnull tnull force-pushed the 2024-09-rustfmt-router-2 branch from 01e58df to 947cf72 Compare September 25, 2024 04:22
@tnull
Copy link
Contributor Author

tnull commented Sep 25, 2024

Rebased on main after #3336 landed.

Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

Not familiar with mutation Ci waorkflow but looks like that the failure is unrelated? https://github.com/lightningdevkit/rust-lightning/actions/runs/11026258813/job/30622498871?pr=3337

otherwise LGMT

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.

Didn't read it all the way through, mind rebasing and reading it through to fix any small stuff that needs cleanup?

fee_proportional_millionths: 0,
excess_data: Vec::new()
});
update_channel(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mind going through these and pulling the update out into a variable to skip the extra 4 or five lines?

default_node_features().le_flags()
); // We dont pass flags in from invoices yet
assert_eq!(route.paths[0].hops[4].channel_features.le_flags(), &Vec::<u8>::new());
// We can't learn any flags from invoices, sadly
Copy link
Collaborator

Choose a reason for hiding this comment

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

this got moved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants