Skip to content
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

ENG-833: Create config file for additional configuration options. #138

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 55 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions config/config.toml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
## Copy this file, rename it to `config.toml` and place it in the `config` sub-directory of the `root_dir`.
## For instance, if the `root_dir` is `~/.polybase`, then the config file should be: `~/.polybase/config/config.toml`.
##
## Uncomment the options and provide values as required. Default values are supplied where sensible.

# The core options are the options supported by the cli and env (via `clap`) as well as the TOML-based configurtion modes.
[core]

# The command string. Possible values: "start", "generate-key"
#command = "start"

# Node ID: an unsigned 64-bit value. For instance: 1
#id = 1

# Log level. Possible values are DEBUG, INFO, and ERROR. Default: "INFO".
#log_level = "INFO"

# Log format. Possible values: "PRETTY". Default: "PRETTY".
#log_format = "PRETTY"

# RPC listen address. Default: "0.0.0.0:8080"
#rpc_laddr = "0.0.0.0:8080"

# Secret key encoded as a hex string.
#secret_key = ""

# Peer listen address as a string. List of strings. Default: "/ip4/0.0.0.0/tcp/0"
#network_laddr = ["/ip4/0.0.0.0/tcp/0"]

# Peers to dial as a string. Comma separated strings. Default: [""]
#dial_addr = [""]

# Validator peers - list of strings. Default: [""]
#peers = [""]

# Maximum history of blocks to keep in memory. Default = 1024
#block_cache_count = 1024

# Maximum number of txns to include in a block. Default = 1024
#block_txns_count = 1024

# Size of the chunks of data sent during snapshot load. Default = 4194304
#snapshot_chunk_size = 4194304

# Size of the chunks of data sent during snapshot load. Default = 500
#min_block_duration = 500

# Sentry DSN. Default: ""
#sentry_dsn = ""

# Public key whitelist: list of strings
#whitelist = [""]

# Restrict namespaces to pk/<pk>/<collection_name>. Default: false
#restrict_namespaces = false

# Non-core configuration options

[extra]
3 changes: 2 additions & 1 deletion polybase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ secp256k1 = { version = "0.26", features = [
"global-context",
"rand",
] }
clap = { version = "4.1.4", features = ["env", "derive"] }
clap = { version = "4.1.4", features = ["cargo", "env", "derive"] }
bincode = "1.3.3"
winter-crypto = "0.4.2"
cid = "0.10"
Expand Down Expand Up @@ -64,6 +64,7 @@ void = "1.0.2"
either = "1.8.1"
ed25519-dalek = "1.0.1"
bs58 = "0.5.0"
toml = "0.7.4"

[dev-dependencies]
tokio-test = "0.4.2"
Expand Down
118 changes: 0 additions & 118 deletions polybase/src/config.rs

This file was deleted.

Loading