Config is the configuration for hedging requests.
| 22 | |
| 23 | // Config is the configuration for hedging requests. |
| 24 | type 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. |
| 34 | func (cfg *Config) RegisterFlags(f *flag.FlagSet) { |
nothing calls this directly
no outgoing calls
no test coverage detected