-
Notifications
You must be signed in to change notification settings - Fork 93
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
Developer Tools: create indexer data dir #991
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #991 +/- ##
========================================
Coverage 60.17% 60.17%
========================================
Files 41 41
Lines 5700 5700
========================================
Hits 3430 3430
Misses 1824 1824
Partials 446 446 Continue to review full report at Codecov.
|
cmd/algorand-indexer/daemon.go
Outdated
@@ -185,6 +197,8 @@ func init() { | |||
daemonCmd.Flags().Uint32VarP(&maxApplicationsLimit, "max-applications-limit", "", 1000, "set the maximum allowed Limit parameter for querying applications") | |||
daemonCmd.Flags().Uint32VarP(&defaultApplicationsLimit, "default-applications-limit", "", 100, "set the default Limit parameter for querying applications, if none is provided") | |||
|
|||
daemonCmd.Flags().StringVarP(&indexerDataDir, "datadir", "i", "", "path to indexer data dir, or $INDEXER_DATA") |
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.
nit: kebab case used for other parameters
daemonCmd.Flags().StringVarP(&indexerDataDir, "datadir", "i", "", "path to indexer data dir, or $INDEXER_DATA") | |
daemonCmd.Flags().StringVarP(&indexerDataDir, "data-dir", "i", "", "path to indexer data dir, or $INDEXER_DATA") |
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.
One nit otherwise LGTM. We'll need to update the README at some point, but maybe that can wait until the data dir is used for something.
Summary
Create a data directory for indexer
Test Plan
run cmd manually to validate directory is created only if it doesn't exist already.