mirror of https://github.com/grpc/grpc-go.git
doc: remove comment about obsolete GRPC_GO_RETRY env var (#5495)
This commit is contained in:
parent
9ba66f1b84
commit
c402378755
|
|
@ -528,9 +528,6 @@ func WithDefaultServiceConfig(s string) DialOption {
|
|||
// 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
|
||||
// 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 {
|
||||
return newFuncDialOption(func(o *dialOptions) {
|
||||
o.disableRetry = true
|
||||
|
|
|
|||
|
|
@ -18,11 +18,10 @@ First start the server:
|
|||
go run server/main.go
|
||||
```
|
||||
|
||||
Then run the client. Note that when running the client, `GRPC_GO_RETRY=on` must be set in
|
||||
your environment:
|
||||
Then run the client:
|
||||
|
||||
```bash
|
||||
GRPC_GO_RETRY=on go run client/main.go
|
||||
go run client/main.go
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
|||
Loading…
Reference in New Issue