MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / applyRetryConfig

Method applyRetryConfig

sdk/cliproxy/service.go:760–767  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

758}
759
760func (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
769func (s *Service) configureCooldownStateStore(cfg *config.Config) {
770 if s == nil || s.coreManager == nil {

Callers 2

RunMethod · 0.95

Calls 1

SetRetryConfigMethod · 0.80

Tested by

no test coverage detected