Skip to content

Remvoe errors package from libs#4157

Merged
tac0turtle merged 6 commits intomasterfrom
marko/remove_ers_pkg
Nov 19, 2019
Merged

Remvoe errors package from libs#4157
tac0turtle merged 6 commits intomasterfrom
marko/remove_ers_pkg

Conversation

@tac0turtle
Copy link
Contributor

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

- closes #3862

- remove errors file from cmn
@tac0turtle tac0turtle added the T:code-hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. label Nov 18, 2019
@tac0turtle tac0turtle self-assigned this Nov 18, 2019
@tac0turtle tac0turtle marked this pull request as ready for review November 18, 2019 17:41
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

This needs a CHANGELOG_PENDING.md entry under BREAKING Go API section.

@codecov-io
Copy link

codecov-io commented Nov 19, 2019

Codecov Report

Merging #4157 into master will increase coverage by <.01%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master    #4157      +/-   ##
==========================================
+ Coverage   66.65%   66.65%   +<.01%     
==========================================
  Files         247      246       -1     
  Lines       21215    21156      -59     
==========================================
- Hits        14140    14101      -39     
+ Misses       6015     5997      -18     
+ Partials     1060     1058       -2
Impacted Files Coverage Δ
lite/proxy/query.go 7.35% <0%> (ø) ⬆️
libs/common/async.go 89.55% <100%> (ø) ⬆️
lite/base_verifier.go 67.85% <50%> (ø) ⬆️
blockchain/v2/reactor.go 50.87% <0%> (-10.53%) ⬇️
libs/events/events.go 93.2% <0%> (-4.86%) ⬇️
p2p/pex/pex_reactor.go 82.13% <0%> (-1.73%) ⬇️
consensus/replay.go 71.76% <0%> (-0.79%) ⬇️
consensus/state.go 77.63% <0%> (+0.21%) ⬆️
p2p/conn/connection.go 80.97% <0%> (+0.25%) ⬆️
consensus/reactor.go 78.38% <0%> (+1.27%) ⬆️
... and 4 more

@tessr
Copy link
Contributor

tessr commented Nov 19, 2019

nitpick but when you merge this, can you make the commit is libs/common/errors: remove package to follow the standard go commit message style 😉

@tessr
Copy link
Contributor

tessr commented Nov 19, 2019

more on that here: https://tip.golang.org/doc/contribute.html#commit_messages

the reason for doing this is so that when you're digging through git history and looking at git blame or other git history for a file, everyone can see immediately which package motivated a change. it sounds fastidious but it's actually extremely helpful!

@tac0turtle tac0turtle merged commit aca94fd into master Nov 19, 2019
@tac0turtle tac0turtle deleted the marko/remove_ers_pkg branch November 19, 2019 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T:code-hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove use of libs/common/errors.go

5 participants