From 9e5650617b1ec7b7f5fb47b044f5470d0eb4417b Mon Sep 17 00:00:00 2001 From: ArvinLovegood Date: Wed, 2 Apr 2025 14:04:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(settings):=E8=B0=83=E6=95=B4=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E6=B1=A0=E5=A4=A7=E5=B0=8F=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -将 BrowserPoolSize 的默认值从 3 修改为 1 - 确保在设置值小于等于 0 时,使用新的默认值 1 --- backend/data/settings_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/data/settings_api.go b/backend/data/settings_api.go index 62ef945..832b6f9 100644 --- a/backend/data/settings_api.go +++ b/backend/data/settings_api.go @@ -125,7 +125,7 @@ func (s SettingsApi) GetConfig() *Settings { settings.BrowserPath, _ = CheckBrowserOnWindows() } if settings.BrowserPoolSize <= 0 { - settings.BrowserPoolSize = 3 + settings.BrowserPoolSize = 1 } return &settings }