()
| 118 | ) |
| 119 | |
| 120 | func getHTTPClient() *http.Client { |
| 121 | httpClientOnce.Do(func() { |
| 122 | httpClient = newHTTPClient() |
| 123 | }) |
| 124 | return httpClient |
| 125 | } |
| 126 | |
| 127 | func fetchJSON[T any](ctx context.Context, url string, out *upstreamEnvelope[T]) error { |
| 128 | var lastErr error |
no test coverage detected