Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Rename and fix bootstrap node url env var (#234)
Browse files Browse the repository at this point in the history
* Rename bootstrap node url env var and fix it in test config

* Remove redundant comment
  • Loading branch information
Michał Sieczkowski authored Jul 2, 2021
1 parent b222994 commit 74376ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# format: text
#
#bootstrap:
# bootstrap_node_url: http://localhost:8080 # set this url to bootstrap from remote node
# node_url: http://localhost:8080 # set this url to bootstrap from remote node
#
#rollup:
# sync_size: 50
Expand Down
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func GetConfig() *Config {
Bootstrap: &BootstrapConfig{
Prune: false, // overridden in main
GenesisAccounts: getGenesisAccounts(),
BootstrapNodeURL: getStringOrNil("bootstrap.bootstrap_node_url"),
BootstrapNodeURL: getStringOrNil("bootstrap.node_url"),
},
Rollup: &RollupConfig{
SyncSize: getUint32("rollup.sync_size", 50),
Expand Down Expand Up @@ -74,7 +74,7 @@ func GetTestConfig() *Config {
Bootstrap: &BootstrapConfig{
Prune: false, // overridden in main
GenesisAccounts: getGenesisAccounts(),
BootstrapNodeURL: getStringOrNil("rollup.bootstrap_node_url"),
BootstrapNodeURL: getStringOrNil("bootstrap.node_url"),
},
Rollup: &RollupConfig{
SyncSize: getUint32("rollup.sync_size", 50),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ metadata:
data:
HUBBLE_ETHEREUM_PRIVATE_KEY: ab6919fd6ac00246bb78657e0696cf72058a4cb395133d074eabaddb83d8b00c
HUBBLE_POSTGRES_NAME: "secondary-hubble-commander"
HUBBLE_BOOTSTRAP_BOOTSTRAP_NODE_URL: http://localhost:8080
HUBBLE_BOOTSTRAP_NODE_URL: http://localhost:8080
HUBBLE_API_PORT: "8081"
1 change: 0 additions & 1 deletion main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func configureLogger(cfg *config.Config) {
}

// Output to stdout instead of the default stderr
// Can be any io.Writer, see below for File example
log.SetOutput(os.Stdout)

// Only log the warning severity or above.
Expand Down

0 comments on commit 74376ea

Please sign in to comment.