(services ...*HTTPService)
| 20 | } |
| 21 | |
| 22 | func NewCompositeHTTPService(services ...*HTTPService) *CompositeHTTPService { |
| 23 | return &CompositeHTTPService{ |
| 24 | services: services, |
| 25 | retryBackoff: backoff.New(context.Background(), backoff.Config{ |
| 26 | MinBackoff: 300 * time.Millisecond, |
| 27 | MaxBackoff: 600 * time.Millisecond, |
| 28 | MaxRetries: 50, // Sometimes the CI is slow ¯\_(ツ)_/¯ |
| 29 | }), |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func (s *CompositeHTTPService) NumInstances() int { |
| 34 | return len(s.services) |
no test coverage detected