Polish "Update broken code examples in docs"

This continues the effort of the previous commit to update
broken code examples.
This commit is contained in:
Chris Bono
2025-01-12 12:14:51 -06:00
parent b861d9301b
commit fc1de937a8
2 changed files with 4 additions and 4 deletions

View File

@@ -240,7 +240,7 @@ To create a simple gRPC client, you can use the Spring Boot starter (see above -
```java
@Bean
SimpleGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels) {
return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:9090").build());
return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:9090"));
}
```
@@ -251,7 +251,7 @@ The default `GrpcChannelFactory` implementation can also create a "named" channe
```java
@Bean
SimpleGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels) {
return SimpleGrpc.newBlockingStub(channels.createChannel("local").build());
return SimpleGrpc.newBlockingStub(channels.createChannel("local"));
}
```

View File

@@ -250,7 +250,7 @@ To create a simple gRPC client, you can use the Spring Boot starter (see above -
----
@Bean
SimpleGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels) {
return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:9090").build());
return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:9090"));
}
----
@@ -262,7 +262,7 @@ The default `GrpcChannelFactory` implementation can also create a "named" channe
----
@Bean
SimpleGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels) {
return SimpleGrpc.newBlockingStub(channels.createChannel("local").build());
return SimpleGrpc.newBlockingStub(channels.createChannel("local"));
}
----