Fix typos and comments in config.toml (#1739)

Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
This commit is contained in:
Abhay Krishna
2021-12-02 22:38:09 -08:00
committed by GitHub
parent 535c26b0e0
commit 38a3039a21
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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"`