-
Notifications
You must be signed in to change notification settings - Fork 92
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
tech debt: Indexer initialization improvements #1352
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1352 +/- ##
===========================================
- Coverage 62.78% 60.71% -2.08%
===========================================
Files 76 76
Lines 10377 10909 +532
===========================================
+ Hits 6515 6623 +108
- Misses 3303 3699 +396
- Partials 559 587 +28
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
panic(exit{1}) | ||
fmt.Fprintf(os.Stderr, "Exiting with error: %s\n", err.Error()) | ||
os.Exit(1) |
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.
We weren't printing errors returned from runDaemon
!
Panic is no longer needed, if daemon returns then defer was able to run properly.
* Print correct logfile. * Do not use logger before initialized. * Do not require data dir in read-only mode.
d35f886
to
cb0a2ec
Compare
Summary
BindFlagSet
twice.panic
with an error return.Test Plan
Existing / new unit tests.
Manual testing.