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

Struct Config

hedging/hedging.go:24–31  ·  view source on GitHub ↗

Config is the configuration for hedging requests.

Source from the content-addressed store, hash-verified

22
23// Config is the configuration for hedging requests.
24type Config struct {
25 // At is the duration after which a second request will be issued.
26 At time.Duration `yaml:"at"`
27 // UpTo is the maximum number of requests that will be issued.
28 UpTo int `yaml:"up_to"`
29 // The maximum number of hedge requests allowed per second.
30 MaxPerSecond int `yaml:"max_per_second"`
31}
32
33// RegisterFlags registers flags.
34func (cfg *Config) RegisterFlags(f *flag.FlagSet) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected