Update broken code example in docs
This commit updates a broken code example in the docs.
The breakage was introduced in commit b08e11a.
This commit is contained in:
committed by
Chris Bono
parent
1559843b43
commit
b861d9301b
@@ -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.
|
||||
You can look at the implementation of those interceptors to see how to create your own for custom headers.
|
||||
|
||||
Reference in New Issue
Block a user