- pollClient := &http.Client{
- Timeout: timeoutPollClient,
- }
- jobHandler = jobs.NewJobHandlerImpl("configs/type_config.json", pollClient, httpClient)
+
+ rawRetryClient := retryablehttp.NewClient()
+ rawRetryClient.RetryWaitMax = retryWaitMax
+ rawRetryClient.RetryMax = retryMax
+ retryClient = rawRetryClient.StandardClient()
+
+ jobHandler = jobs.NewJobHandlerImpl("configs/type_config.json", retryClient, distributionClient)