Skip to content

Conversation

TheBlueMatt
Copy link
Collaborator

Waker::wake_by_ref is allowed to be less efficient than Waker::wake and given we have ownership we might as well use the more efficient one.

`Waker::wake_by_ref` is allowed to be less efficient than
`Waker::wake` and given we have ownership we might as well use the
more efficient one.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Oct 4, 2025

👋 I see @tankyleo was un-assigned.
If you'd like another reviewer assignment, please click here.

Copy link

codecov bot commented Oct 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.64%. Comparing base (cfe2a1e) to head (1bea7a8).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4141      +/-   ##
==========================================
- Coverage   88.66%   88.64%   -0.02%     
==========================================
  Files         180      180              
  Lines      135148   135230      +82     
  Branches   135148   135230      +82     
==========================================
+ Hits       119829   119880      +51     
- Misses      12553    12585      +32     
+ Partials     2766     2765       -1     
Flag Coverage Δ
fuzzing 21.76% <0.00%> (-0.03%) ⬇️
tests 88.49% <100.00%> (-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

This is similar to wake(), but may be slightly less efficient in the case where an owned Waker is available. This method should be preferred to calling waker.clone().wake().

https://doc.rust-lang.org/std/task/struct.Waker.html#method.wake_by_ref

@tnull tnull merged commit 7439528 into lightningdevkit:main Oct 4, 2025
25 checks passed
@tankyleo tankyleo removed their request for review October 10, 2025 18:19
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