-
Notifications
You must be signed in to change notification settings - Fork 44
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: Extract (events, merkle) errors to errors.go #973
Conversation
@@ -104,7 +102,7 @@ func (mc *MerkleClock) AddDAGNode( | |||
// write the delta and heads to a new block | |||
nd, err := mc.putBlock(ctx, heads, height, delta) | |||
if err != nil { | |||
return nil, errors.Wrap("could not add block ", err) | |||
return nil, err |
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.
I dropped this wrap and the one at the one at the end as they are wrapping previously well defined errors local to this package and dont really seem to add any value
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.
good idea.
c05babb
to
3f3120e
Compare
Codecov Report
@@ Coverage Diff @@
## develop #973 +/- ##
===========================================
- Coverage 57.82% 57.72% -0.11%
===========================================
Files 169 170 +1
Lines 19420 19440 +20
===========================================
- Hits 11229 11221 -8
- Misses 7202 7226 +24
- Partials 989 993 +4
|
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!
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.
Thanks for doing these. Looks good.
* Extract events errors to errors.go * Extract clock errors to errors.go * Extract crdt errors to errors.go
Relevant issue(s)
Part of #257
Description
Extracts (events, merkle) errors to errors.go. Smaller PR as the next packages are net and node which are a bit larger RE errors and I dont want that to get too big.