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

Function WithHeartbeatPeriod

ring/lifecycler_test.go:40–44  ·  view source on GitHub ↗

WithHeartbeatPeriod sets the heartbeat period for the lifecycler config.

(period time.Duration)

Source from the content-addressed store, hash-verified

38
39// WithHeartbeatPeriod sets the heartbeat period for the lifecycler config.
40func WithHeartbeatPeriod(period time.Duration) TestLifecyclerConfigOption {
41 return func(cfg *LifecyclerConfig) {
42 cfg.HeartbeatPeriod = period
43 }
44}
45
46// WithJoinAfter sets the join after period for the lifecycler config.
47func WithJoinAfter(period time.Duration) TestLifecyclerConfigOption {

Callers 1

TestLifecycler_ZonesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected