mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-07-29 05:03:49 +00:00
fix
This commit is contained in:
@@ -356,7 +356,7 @@ func StartPrefetcher(baseURL string) {
|
||||
log.Printf("[prefetch] failed to create cache dir: %v", err)
|
||||
}
|
||||
|
||||
client := &http.Client{Timeout: 20 * time.Second}
|
||||
client := &http.Client{Timeout: 15 * time.Minute} // FACR API can be very slow
|
||||
|
||||
// Feature toggles (env)
|
||||
enableFastMatch := envBool("ENABLE_FAST_MATCH_PREFETCH", true)
|
||||
@@ -504,7 +504,7 @@ func StartPrefetcher(baseURL string) {
|
||||
// PrefetchOnce runs a single prefetch cycle immediately. Useful to trigger after setup.
|
||||
func PrefetchOnce(baseURL string) {
|
||||
baseURL = strings.TrimSuffix(baseURL, "/")
|
||||
client := &http.Client{Timeout: 20 * time.Second}
|
||||
client := &http.Client{Timeout: 15 * time.Minute} // FACR API can be very slow
|
||||
doPrefetchCycleGuarded(client, baseURL)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user