(cfg *config.Config)
| 758 | } |
| 759 | |
| 760 | func (s *Service) applyRetryConfig(cfg *config.Config) { |
| 761 | if s == nil || s.coreManager == nil || cfg == nil { |
| 762 | return |
| 763 | } |
| 764 | maxInterval := time.Duration(cfg.MaxRetryInterval) * time.Second |
| 765 | s.coreManager.SetRetryConfig(cfg.RequestRetry, maxInterval, cfg.MaxRetryCredentials) |
| 766 | coreauth.SetTransientErrorCooldownSeconds(cfg.TransientErrorCooldownSeconds) |
| 767 | } |
| 768 | |
| 769 | func (s *Service) configureCooldownStateStore(cfg *config.Config) { |
| 770 | if s == nil || s.coreManager == nil { |
no test coverage detected