Closed mcamou closed 2 weeks ago
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
Attention: Patch coverage is 7.21649%
with 90 lines
in your changes missing coverage. Please review.
Project coverage is 8.87%. Comparing base (
119f740
) to head (ffac52b
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
PR description is too short and seems to not fulfill PR template, please fill in
Description
This PR cleans up some of the things I've been finding while getting familiar with the code:
golangci-lint
to pass, there's quite a bit of error checking that was missinggolangci-lint
andgo vet
go.mod
andgo.sum
are up to dategofmt
standardsOracleNode.getNodeData
WithDHT
andWithMDNS
toEnableDHT
andEnableMDNS
FromUnixTime
fromOracleNode
to be a stand-alone function inhandlers_node.go
db.ReadData
anddb.WriteData
getMultiAddressesForHostQuiet
db.SendToS3
andOracleNode.ToUnixTime
Notes for Reviewers
Most of the changes have to do with getting
golangci-lint
to pass.The PR is failing
codecov
because a lot of the changes involved addingif err != nil { return err, nil }
orif err != nil { log(err) }
to satisfygolangci-lint
(and because it's a good practice). However, these are complicated to test without making the PR even bigger, since they will usually need some refactoring to become testable.Signed commits