From b861d9301b4ef232ef79a6bea1896d6c254ac72a Mon Sep 17 00:00:00 2001 From: Dumildes Paulo <72232653+DumiJDev@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:46:50 +0100 Subject: [PATCH] Update broken code example in docs This commit updates a broken code example in the docs. The breakage was introduced in commit b08e11a. --- .../src/main/antora/modules/ROOT/pages/client.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc b/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc index 7077d11..bb97af6 100644 --- a/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc +++ b/spring-grpc-docs/src/main/antora/modules/ROOT/pages/client.adoc @@ -138,7 +138,7 @@ The `@Bean` has to be marked as `@Lazy` to ensure that the port is available whe @Bean @Lazy SimpleGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels, @LocalGrpcPort int port) { - return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:" + port).build()); + return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:" + port)); } ---- @@ -243,4 +243,4 @@ Channel basic(GrpcChannelFactory channels) { ---- Usage of the bearer token interceptor is similar. -You can look at the implementation of those interceptors to see how to create your own for custom headers. \ No newline at end of file +You can look at the implementation of those interceptors to see how to create your own for custom headers.