mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
fix
This commit is contained in:
@@ -40,7 +40,7 @@ func NewFACRService(baseURL string) *FACRService {
|
||||
return &FACRService{
|
||||
baseURL: strings.TrimSuffix(baseURL, "/"),
|
||||
httpClient: &http.Client{
|
||||
Timeout: 30 * time.Second,
|
||||
Timeout: 15 * time.Minute, // FAČR API can be very slow
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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