mirror of
https://github.com/gomods/athens
synced 2026-02-03 13:20:30 +00:00
pkg/config: Update GoGetWorkers default/docs (#1052)
* pkg/config: Update GoGetWorkers default/docs * fix tests
This commit is contained in:
+4
-1
@@ -15,8 +15,11 @@ GoEnv = "development"
|
||||
# GoGetWorkers specifies how many times you can concurrently
|
||||
# go mod download, this is so that low performance instances
|
||||
# can manage go get more sanely and not run out of disk or memory.
|
||||
# One way to think about is: the number of GoGetWorkers corresponds
|
||||
# directly to how many parallel "git clones" your underlying machine
|
||||
# can handle.
|
||||
# Env override: ATHENS_GOGET_WORKERS
|
||||
GoGetWorkers = 30
|
||||
GoGetWorkers = 10
|
||||
|
||||
# ProtocolWorkers specifies how many concurrent
|
||||
# requests can you handle at a time for all
|
||||
|
||||
@@ -206,7 +206,7 @@ func TestParseExampleConfig(t *testing.T) {
|
||||
GoEnv: "development",
|
||||
LogLevel: "debug",
|
||||
GoBinary: "go",
|
||||
GoGetWorkers: 30,
|
||||
GoGetWorkers: 10,
|
||||
ProtocolWorkers: 30,
|
||||
CloudRuntime: "none",
|
||||
TimeoutConf: TimeoutConf{
|
||||
|
||||
Reference in New Issue
Block a user