Skip to content

Conversation

@joostjager
Copy link
Contributor

@joostjager joostjager commented Jul 22, 2025

Remove message parameter that is used nowhere.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jul 22, 2025

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@joostjager joostjager requested a review from tnull July 22, 2025 13:17
@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

Attention: Patch coverage is 88.52459% with 7 lines in your changes missing coverage. Please review.

Project coverage is 88.99%. Comparing base (b87a8e0) to head (5e3af3b).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/channel.rs 88.52% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3946      +/-   ##
==========================================
- Coverage   89.01%   88.99%   -0.02%     
==========================================
  Files         167      168       +1     
  Lines      121806   121859      +53     
  Branches   121806   121859      +53     
==========================================
+ Hits       108421   108453      +32     
- Misses      10975    10992      +17     
- Partials     2410     2414       +4     
Flag Coverage Δ
fuzzing 22.68% <47.54%> (-0.06%) ⬇️
tests 88.82% <88.52%> (-0.02%) ⬇️

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.

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.

Simple enough, still some comments though.

While we're here, can we remove the spurious

	// Send stuff to our remote peers:

on line 10580?

) {
Ok(update_add_msg_opt) => {
Ok(can_add_htlc) => {
// `send_htlc` only returns `Ok(None)`, when an update goes into
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems this comment is outdated now if we return a bool.

logger,
);
// All [`LocalHTLCFailureReason`] errors are temporary, so they are [`ChannelError::Ignore`].
match send_res.map_err(|(_, msg)| ChannelError::Ignore(msg))? {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we extract the bool into a variable and make this a simple if rather than a match now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, better

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

@joostjager joostjager force-pushed the simplify-send-htlc branch from 93f5e01 to 5e3af3b Compare July 23, 2025 06:45
@joostjager joostjager requested a review from tnull July 23, 2025 06:46
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.

LGTM

Simple enough, will land this once CI lets me.

@tnull tnull merged commit 6b951d6 into lightningdevkit:main Jul 23, 2025
27 of 28 checks passed
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