()
| 444 | } |
| 445 | |
| 446 | func retryableHTTPRoundTripper() http.RoundTripper { |
| 447 | retryClient := retryablehttp.NewClient() |
| 448 | retryClient.RetryMax = 3 |
| 449 | retryClient.RetryWaitMin = 2 * time.Second |
| 450 | retryClient.RetryWaitMax = 10 * time.Second |
| 451 | retryClient.Logger = nil // Disable inbuilt logger |
| 452 | return retryClient.StandardClient().Transport |
| 453 | } |
| 454 | |
| 455 | func installationCacheKey(installationID int64, repoID *int64) string { |
| 456 | if repoID != nil { |