From 6a1a7ccf7d21df84b194041243f6e6a75e940942 Mon Sep 17 00:00:00 2001 From: Abhishek Ranjan Date: Mon, 17 Jun 2024 17:12:58 +0530 Subject: [PATCH] Improve docstring --- examples/features/retry/client/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/features/retry/client/main.go b/examples/features/retry/client/main.go index 9f76f9dc3602..45d08d122459 100644 --- a/examples/features/retry/client/main.go +++ b/examples/features/retry/client/main.go @@ -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)) }