From 48c24b98b7f97d64f8ef6f80011e591a6b7c1cd9 Mon Sep 17 00:00:00 2001 From: Katie Hockman Date: Thu, 1 Dec 2022 10:40:57 -0500 Subject: [PATCH] Update contrib/google.golang.org/grpc/example_test.go Co-authored-by: Kyle Nusbaum --- contrib/google.golang.org/grpc/example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/google.golang.org/grpc/example_test.go b/contrib/google.golang.org/grpc/example_test.go index 022d02f755..7ff0c2c7d1 100644 --- a/contrib/google.golang.org/grpc/example_test.go +++ b/contrib/google.golang.org/grpc/example_test.go @@ -20,8 +20,8 @@ func Example_client() { ui := grpctrace.UnaryClientInterceptor(grpctrace.WithServiceName("my-grpc-client")) // Dial in using the created interceptor. - // Note: grpc.Dial does not support multiple UnaryInterceptor options directly. - // If this is needed, use grpc.WithChainUnaryInterceptor instead. + // Note: To use multiple UnaryInterceptors with grpc.Dial, you must use + // grpc.WithChainUnaryInterceptor instead. conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure(), grpc.WithStreamInterceptor(si), grpc.WithUnaryInterceptor(ui)) if err != nil {