Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danlaine
Copy link
Collaborator

@danlaine danlaine commented Jun 4, 2025

Logs the actual error instead of just ChannelClosed.

@danlaine danlaine self-assigned this Jun 4, 2025
@danlaine danlaine marked this pull request as ready for review June 4, 2025 18:02
#[error("invalid channel")]
InvalidChannel,
#[error("channel closed: {0}")]
ChannelClosed(u32),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was unused, so I removed it. Alternatively, we could keep this error and add an error field.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this change makes sense 👍

@patrick-ogrady patrick-ogrady merged commit 0a54bfc into main Jun 4, 2025
17 checks passed
@patrick-ogrady patrick-ogrady deleted the danlaine/fix-error-log branch June 4, 2025 23:28
@codecov
Copy link

codecov bot commented Jun 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.09%. Comparing base (4e3c06f) to head (547b29e).
Report is 2 commits behind head on main.

@@            Coverage Diff             @@
##             main    #1063      +/-   ##
==========================================
- Coverage   91.10%   91.09%   -0.01%     
==========================================
  Files         191      191              
  Lines       54854    54852       -2     
==========================================
- Hits        49972    49970       -2     
  Misses       4882     4882              
Files with missing lines Coverage Δ
p2p/src/authenticated/actors/peer/actor.rs 81.53% <100.00%> (-0.19%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e3c06f...547b29e. Read the comment docs.

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

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.

2 participants