| 624 | } |
| 625 | |
| 626 | type grpcConfig struct { |
| 627 | MaxRecvMsgSize int `yaml:"max_recv_msg_size"` |
| 628 | MaxSendMsgSize int `yaml:"max_send_msg_size"` |
| 629 | GRPCCompression string `yaml:"grpc_compression"` |
| 630 | RateLimit float64 `yaml:"rate_limit"` |
| 631 | RateLimitBurst int `yaml:"rate_limit_burst"` |
| 632 | |
| 633 | BackoffOnRatelimits bool `yaml:"backoff_on_ratelimits"` |
| 634 | BackoffConfig backoff.Config `yaml:"backoff_config"` |
| 635 | |
| 636 | TLSEnabled bool `yaml:"tls_enabled"` |
| 637 | TLS tls.ClientConfig `yaml:",inline"` |
| 638 | } |
| 639 | |
| 640 | // RegisterFlags registers flags. |
| 641 | func (cfg *grpcConfig) RegisterFlags(f *flag.FlagSet) { |
nothing calls this directly
no outgoing calls
no test coverage detected