sane defaults for config

This commit is contained in:
Roy Crihfield 2023-09-29 18:41:09 +08:00
parent ab7bbbd80a
commit 3c5bd48ae7

View File

@ -121,9 +121,9 @@ func init() {
rootCmd.PersistentFlags().String("leveldb-url", "", "url to primary leveldb-ethdb-rpc server")
rootCmd.PersistentFlags().Bool("prerun", false, "turn on prerun of toml configured ranges")
rootCmd.PersistentFlags().Int("service-workers", 0, "number of range requests to process concurrently")
rootCmd.PersistentFlags().Int("trie-workers", 0, "number of workers to use for trie traversal and processing")
rootCmd.PersistentFlags().Int("worker-queue-size", 0, "size of the range request queue for service workers")
rootCmd.PersistentFlags().Int("service-workers", 1, "number of range requests to process concurrently")
rootCmd.PersistentFlags().Int("trie-workers", 1, "number of workers to use for trie traversal and processing")
rootCmd.PersistentFlags().Int("worker-queue-size", 1024, "size of the range request queue for service workers")
rootCmd.PersistentFlags().String("database-name", "cerc_public", "database name")
rootCmd.PersistentFlags().Int("database-port", 5432, "database port")