From 38a3039a218fb7c5ee8e9d810b331ccfc5d5c9b7 Mon Sep 17 00:00:00 2001 From: Abhay Krishna Date: Thu, 2 Dec 2021 22:38:09 -0800 Subject: [PATCH] Fix typos and comments in config.toml (#1739) Co-authored-by: Marwan Sulaiman --- config.dev.toml | 4 ++-- pkg/config/config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.dev.toml b/config.dev.toml index 0aad1898..31a48aad 100755 --- a/config.dev.toml +++ b/config.dev.toml @@ -49,7 +49,7 @@ GoProxy = "direct" # GoBinaryEnvVars = ["GOPROXY=direct"] # And you pass the following env var: # ATHENS_GO_BINARY_ENV_VARS='GODEBUG=true' -# Then the final value that the Go binary will receive is [GOBINARY=true] and NOT ["GOPROXY=direct", "GOBINARY=true"] +# Then the final value that the Go binary will receive is ["GODEBUG=true"] and NOT ["GOPROXY=direct", "GODEBUG=true"] # Therefore, whether you use the config file or the env var, make sure you have all the values you need there. GoBinaryEnvVars = ["GOPROXY=direct"] @@ -69,7 +69,7 @@ GoGetWorkers = 10 # a directory that has larger disk resources. If the value is # empty, Athens will use the default OS temporary directory. # -# Env override: ATHENS_GOGOET_DIR +# Env override: ATHENS_GOGET_DIR GoGetDir = "" # ProtocolWorkers specifies how many concurrent diff --git a/pkg/config/config.go b/pkg/config/config.go index 6046e888..746a8143 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -26,7 +26,7 @@ type Config struct { GoProxy string `envconfig:"GOPROXY"` GoBinaryEnvVars EnvList `envconfig:"ATHENS_GO_BINARY_ENV_VARS"` GoGetWorkers int `validate:"required" envconfig:"ATHENS_GOGET_WORKERS"` - GoGetDir string `envconfig:"ATHENS_GOGOET_DIR"` + GoGetDir string `envconfig:"ATHENS_GOGET_DIR"` ProtocolWorkers int `validate:"required" envconfig:"ATHENS_PROTOCOL_WORKERS"` LogLevel string `validate:"required" envconfig:"ATHENS_LOG_LEVEL"` CloudRuntime string `validate:"required" envconfig:"ATHENS_CLOUD_RUNTIME"`