From 73d4a3658ca14527e8a749bb8850a2c8e4bfac88 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Tue, 12 Aug 2025 22:33:41 +0700 Subject: feat: integrate parallel execution refactor: simplify frontmatter parser feat: always check for '.md' extension feat: new timezone field --- config/config.go | 5 +++-- config/config.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'config') 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": { -- cgit v1.3.1+13