Changeset 0.22.4 (#146)
This commit is contained in:
@@ -62,6 +62,11 @@ type Config struct {
|
||||
// WORKSPACE_INDEX_CONCURRENCY: max concurrent indexing goroutines (default 2).
|
||||
WorkspaceIndexingEnabled bool
|
||||
WorkspaceIndexConcurrency int
|
||||
|
||||
// Provider auto-disable (v0.22.4)
|
||||
// PROVIDER_AUTO_DISABLE_THRESHOLD: consecutive "down" hourly windows before a
|
||||
// provider is automatically deactivated. Default 3. Set to 0 to disable.
|
||||
ProviderAutoDisableThreshold int
|
||||
}
|
||||
|
||||
// Load reads configuration from environment variables.
|
||||
@@ -98,6 +103,8 @@ func Load() *Config {
|
||||
|
||||
WorkspaceIndexingEnabled: getEnvBool("WORKSPACE_INDEXING_ENABLED", true),
|
||||
WorkspaceIndexConcurrency: getEnvInt("WORKSPACE_INDEX_CONCURRENCY", 2),
|
||||
|
||||
ProviderAutoDisableThreshold: getEnvInt("PROVIDER_AUTO_DISABLE_THRESHOLD", 3),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user