refactor(settings):调整浏览器池大小默认值

-将 BrowserPoolSize 的默认值从 3 修改为 1
- 确保在设置值小于等于 0 时,使用新的默认值 1
This commit is contained in:
ArvinLovegood 2025-04-02 14:04:56 +08:00
parent bac10a2a04
commit 9e5650617b

View File

@ -125,7 +125,7 @@ func (s SettingsApi) GetConfig() *Settings {
settings.BrowserPath, _ = CheckBrowserOnWindows()
}
if settings.BrowserPoolSize <= 0 {
settings.BrowserPoolSize = 3
settings.BrowserPoolSize = 1
}
return &settings
}