doc: remove comment about obsolete GRPC_GO_RETRY env var (#5495)

This commit is contained in:
mitchsw 2022-07-12 16:36:41 -04:00 committed by GitHub
parent 9ba66f1b84
commit c402378755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -528,9 +528,6 @@ func WithDefaultServiceConfig(s string) DialOption {
// service config enables them. This does not impact transparent retries, which // service config enables them. This does not impact transparent retries, which
// will happen automatically if no data is written to the wire or if the RPC is // will happen automatically if no data is written to the wire or if the RPC is
// unprocessed by the remote server. // unprocessed by the remote server.
//
// Retry support is currently enabled by default, but may be disabled by
// setting the environment variable "GRPC_GO_RETRY" to "off".
func WithDisableRetry() DialOption { func WithDisableRetry() DialOption {
return newFuncDialOption(func(o *dialOptions) { return newFuncDialOption(func(o *dialOptions) {
o.disableRetry = true o.disableRetry = true

View File

@ -18,11 +18,10 @@ First start the server:
go run server/main.go go run server/main.go
``` ```
Then run the client. Note that when running the client, `GRPC_GO_RETRY=on` must be set in Then run the client:
your environment:
```bash ```bash
GRPC_GO_RETRY=on go run client/main.go go run client/main.go
``` ```
## Usage ## Usage