summaryrefslogtreecommitdiff
path: root/config
diff options
from:
to:
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go5
-rw-r--r--config/config.json1
2 files changed, 4 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index 63c1e0c..515047e 100644
--- a/config/config.go
+++ b/config/config.go
@@ -10,8 +10,9 @@ import (
)
type Config struct {
- LogLevel slog.Level `json:"LogLevel" validate:"required"`
- Storage StorageConfig `json:"Storage" validate:"required"`
+ LogLevel slog.Level `json:"LogLevel" validate:"required"`
+ Storage StorageConfig `json:"Storage" validate:"required"`
+ MaxConcurrentJobs int `json:"MaxConcurrentJobs" validate:"required,min=1"`
}
type StorageConfig struct {
diff --git a/config/config.json b/config/config.json
index 9a49b76..a48f0ff 100644
--- a/config/config.json
+++ b/config/config.json
@@ -1,5 +1,6 @@
{
"LogLevel": "debug",
+ "MaxConcurrentJobs": 8,
"Storage": {
"Type": "b2",
"Config": {