From bd1763657b69fa8fc52a44135c35cfcd8b358655 Mon Sep 17 00:00:00 2001 From: Patrick Oyarzun Date: Mon, 31 Jan 2022 17:13:48 -0500 Subject: [PATCH] Categorize grpc_client config --- backoff/backoff.go | 6 +++--- grpcclient/grpcclient.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backoff/backoff.go b/backoff/backoff.go index 2146f3b92..c5d454715 100644 --- a/backoff/backoff.go +++ b/backoff/backoff.go @@ -10,9 +10,9 @@ import ( // Config configures a Backoff type Config struct { - MinBackoff time.Duration `yaml:"min_period"` // start backoff at this level - MaxBackoff time.Duration `yaml:"max_period"` // increase exponentially to this level - MaxRetries int `yaml:"max_retries"` // give up after this many; zero means infinite retries + MinBackoff time.Duration `yaml:"min_period" category:"advanced"` // start backoff at this level + MaxBackoff time.Duration `yaml:"max_period" category:"advanced"` // increase exponentially to this level + MaxRetries int `yaml:"max_retries" category:"advanced"` // give up after this many; zero means infinite retries } // RegisterFlagsWithPrefix for Config. diff --git a/grpcclient/grpcclient.go b/grpcclient/grpcclient.go index ba7b74cfd..e7d93b64e 100644 --- a/grpcclient/grpcclient.go +++ b/grpcclient/grpcclient.go @@ -18,13 +18,13 @@ import ( // Config for a gRPC client. type Config struct { - MaxRecvMsgSize int `yaml:"max_recv_msg_size"` - MaxSendMsgSize int `yaml:"max_send_msg_size"` - GRPCCompression string `yaml:"grpc_compression"` - RateLimit float64 `yaml:"rate_limit"` - RateLimitBurst int `yaml:"rate_limit_burst"` + MaxRecvMsgSize int `yaml:"max_recv_msg_size" category:"advanced"` + MaxSendMsgSize int `yaml:"max_send_msg_size" category:"advanced"` + GRPCCompression string `yaml:"grpc_compression" category:"advanced"` + RateLimit float64 `yaml:"rate_limit" category:"advanced"` + RateLimitBurst int `yaml:"rate_limit_burst" category:"advanced"` - BackoffOnRatelimits bool `yaml:"backoff_on_ratelimits"` + BackoffOnRatelimits bool `yaml:"backoff_on_ratelimits" category:"advanced"` BackoffConfig backoff.Config `yaml:"backoff_config"` TLSEnabled bool `yaml:"tls_enabled" category:"advanced"`