MCPcopy
hub / github.com/grafana/dskit / prepareBasicLifecyclerConfig

Function prepareBasicLifecyclerConfig

ring/basic_lifecycler_test.go:651–660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

649}
650
651func prepareBasicLifecyclerConfig() BasicLifecyclerConfig {
652 return BasicLifecyclerConfig{
653 ID: testInstanceID,
654 Addr: "127.0.0.1:12345",
655 Zone: zone(1),
656 HeartbeatPeriod: time.Minute,
657 TokensObservePeriod: 0,
658 NumTokens: 5,
659 }
660}
661
662func prepareBasicLifecycler(t testing.TB, cfg BasicLifecyclerConfig) (*BasicLifecycler, *mockDelegate, kv.Client, error) {
663 delegate := &mockDelegate{}

Calls

no outgoing calls

Tested by

no test coverage detected