fix(laya): extend shared CPU ranking timeout

This commit is contained in:
2026-11-23 20:39:37 +01:00
parent cb06d3432a
commit bf7f94bc80
8 changed files with 100 additions and 9 deletions

View File

@ -64,7 +64,7 @@ func Load() (*Config, error) {
if layaURL == "" {
layaURL = "http://laya:8000"
}
layaTimeout := 120 * time.Second
layaTimeout := 5 * time.Minute
if value := os.Getenv("LAYA_TIMEOUT"); value != "" {
parsed, err := time.ParseDuration(value)
if err != nil || parsed <= 0 || parsed > 10*time.Minute {