Skip to content

Commit

Permalink
Improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans committed Jun 18, 2024
1 parent 07078c4 commit 6a1a7cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/features/retry/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ var (
}]}`
)

// use grpc.WithDefaultServiceConfig() to set service config
// use grpc.WithDefaultServiceConfig() to set service config. Ideal
// behavior would be to get the retry config from name resolver,
// instead of defining it from client side.
func retryDial() (*grpc.ClientConn, error) {
return grpc.NewClient(*addr, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultServiceConfig(retryPolicy))
}
Expand Down

0 comments on commit 6a1a7cc

Please sign in to comment.