We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03753f5 commit f1d87c1Copy full SHA for f1d87c1
internal/envconfig/envconfig.go
@@ -33,8 +33,9 @@ const (
33
)
34
35
var (
36
- // Retry is set if retry is explicitly enabled via "GRPC_GO_RETRY=on" or if XDS retry support is enabled.
37
- Retry = strings.EqualFold(os.Getenv(retryStr), "on") || xdsenv.RetrySupport
+ // Retry is enabled unless explicitly disabled via "GRPC_GO_RETRY=off" or
+ // if XDS retry support is explicitly disabled.
38
+ Retry = !strings.EqualFold(os.Getenv(retryStr), "off") && xdsenv.RetrySupport
39
// TXTErrIgnore is set if TXT errors should be ignored ("GRPC_GO_IGNORE_TXT_ERRORS" is not "false").
40
TXTErrIgnore = !strings.EqualFold(os.Getenv(txtErrIgnoreStr), "false")
41
0 commit comments