Skip to content

Commit 37533b7

Browse files
authored
fix: client interceptors intercept demo (#274)
The first param of `ClientInterceptors.intercept` should be a `io.grpc.Channel`, but not a builder
1 parent c11b0b5 commit 37533b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ class MyClient{
905905
);
906906
907907
Channel authenticatedChannel = ClientInterceptors.intercept(
908-
ManagedChannelBuilder.forAddress("host", 6565), clientInterceptor <2>
908+
ManagedChannelBuilder.forAddress("host", 6565).build(), clientInterceptor <2>
909909
);
910910
// use authenticatedChannel to invoke GRPC service
911911
}

0 commit comments

Comments
 (0)