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.