-
Notifications
You must be signed in to change notification settings - Fork 305
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
improvement: move sealing to init function #1348
improvement: move sealing to init function #1348
Conversation
e334dd7
to
41aa057
Compare
Codecov Report
@@ Coverage Diff @@
## main #1348 +/- ##
==========================================
+ Coverage 48.28% 48.35% +0.07%
==========================================
Files 78 79 +1
Lines 4422 4428 +6
==========================================
+ Hits 2135 2141 +6
Misses 2107 2107
Partials 180 180
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
dope! thanks for taking the time to put into the app pkg 🙂
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
func init() { |
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.
[for reviewers] init()
is called once regardless of how many times this package is imported per https://tutorialedge.net/golang/the-go-init-function/
IMO this seems less clear than an explicit New()
or NewConfig()
invocation but maybe that's because I haven't seen it before. If it's clearer for celestia-node then
d812c12
to
6b742e5
Compare
## Overview Closes #1331 ## Checklist <!-- Please complete the checklist to ensure that the PR is ready to be reviewed. IMPORTANT: PRs should be left in Draft until the below checklist is completed. --> - [x] New and updated code has appropriate documentation - [x] New and updated code has new and/or updated testing - [x] Required CI checks are passing - [x] Visual proof for any user facing features like CLI or documentation updates - [x] Linked issues closed with keywords
Overview
Closes #1331
Checklist