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

Method Validate

ring/ring.go:226–231  ·  view source on GitHub ↗

Validate checks the consistency of Config, and fails if this cannot be achieved.

()

Source from the content-addressed store, hash-verified

224
225// Validate checks the consistency of Config, and fails if this cannot be achieved.
226func (cfg *Config) Validate() error {
227 if cfg.HeartbeatTimeout == 0 {
228 return errors.New("heartbeat timeout must be greater than 0")
229 }
230 return nil
231}
232
233type instanceInfo struct {
234 InstanceID string

Callers 1

Calls

no outgoing calls

Tested by 1