-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix deepsource errors. #1789
Fix deepsource errors. #1789
Conversation
Codecov Report
@@ Coverage Diff @@
## development #1789 +/- ##
===============================================
- Coverage 59.28% 59.26% -0.03%
===============================================
Files 186 186
Lines 20008 20012 +4
===============================================
- Hits 11862 11860 -2
- Misses 6088 6094 +6
Partials 2058 2058
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
dot/network/host.go
Outdated
@@ -225,18 +225,8 @@ func (h *host) close() error { | |||
} | |||
|
|||
// registerStreamHandler registers the stream handler, appending the given sub-protocol to the main protocol ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
var allNodes []peer.AddrInfo | ||
allNodes = append(allNodes, h.bootnodes...) | ||
allNodes = append(allNodes, h.persistentPeers...) | ||
for _, addrInfo := range allNodes { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did deepsource complain about this? just curious what the issue was
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes https://deepsource.io/gh/ChainSafe/gossamer/run/7db3c103-c088-4fb5-904e-bad5ef591ab6/go/CRT-D0001
possibly assigns to a wrong variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* Remove control flag from the function definition. * Remove method receiver from unreferenced methods.
Changes
Tests
Issues
Primary Reviewer