MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewCompositeHTTPService

Function NewCompositeHTTPService

integration/e2e/composite_service.go:22–31  ·  view source on GitHub ↗
(services ...*HTTPService)

Source from the content-addressed store, hash-verified

20}
21
22func 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
33func (s *CompositeHTTPService) NumInstances() int {
34 return len(s.services)

Callers 1

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected