Skip to content
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

chore(dot/network): log the errors from stream.Close() #2779

Merged
merged 2 commits into from
Aug 24, 2022

Conversation

axaysagathiya
Copy link
Contributor

@axaysagathiya axaysagathiya commented Aug 24, 2022

Changes

added the log of the errors returned from stream.Close().

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

Fixed #2376

Primary Reviewer

@timwu20

@CLAassistant
Copy link

CLAassistant commented Aug 24, 2022

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov
Copy link

codecov bot commented Aug 24, 2022

Codecov Report

Merging #2779 (14e7362) into development (dd2fbc9) will decrease coverage by 0.21%.
The diff coverage is 15.00%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #2779      +/-   ##
===============================================
- Coverage        63.03%   62.81%   -0.22%     
===============================================
  Files              213      213              
  Lines            27021    27032      +11     
===============================================
- Hits             17033    16981      -52     
- Misses            8436     8495      +59     
- Partials          1552     1556       +4     

Copy link
Contributor

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

Nice 💯
Just change those %w -> %s so it logs correctly the stringified error 😉

dot/network/helpers_test.go Outdated Show resolved Hide resolved
dot/network/helpers_test.go Outdated Show resolved Hide resolved
dot/network/light.go Outdated Show resolved Hide resolved
dot/network/notifications.go Outdated Show resolved Hide resolved
dot/network/notifications_test.go Outdated Show resolved Hide resolved
dot/network/stream_manager.go Outdated Show resolved Hide resolved
dot/network/sync.go Outdated Show resolved Hide resolved
dot/network/sync.go Outdated Show resolved Hide resolved
Copy link
Contributor

@qdm12 qdm12 left a comment

Choose a reason for hiding this comment

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

🎖️

@qdm12 qdm12 added the PR Easy label Aug 24, 2022
Copy link
Contributor

@jimjbrettj jimjbrettj left a comment

Choose a reason for hiding this comment

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

great stuff

@EclesioMeloJunior EclesioMeloJunior merged commit 4ed3def into ChainSafe:development Aug 24, 2022
@github-actions
Copy link

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@axaysagathiya axaysagathiya deleted the issue-2376 branch July 21, 2023 07:03
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.

dot/network: log errors from stream.Close()
5 participants