mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
refactor(settings):调整浏览器池大小默认值
-将 BrowserPoolSize 的默认值从 3 修改为 1 - 确保在设置值小于等于 0 时,使用新的默认值 1
This commit is contained in:
parent
bac10a2a04
commit
9e5650617b
@ -125,7 +125,7 @@ func (s SettingsApi) GetConfig() *Settings {
|
||||
settings.BrowserPath, _ = CheckBrowserOnWindows()
|
||||
}
|
||||
if settings.BrowserPoolSize <= 0 {
|
||||
settings.BrowserPoolSize = 3
|
||||
settings.BrowserPoolSize = 1
|
||||
}
|
||||
return &settings
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user