Skip to content

Commit 0b3f0a4

Browse files
zZHorizonZzvietj
authored andcommitted
Fix health example to use .addService instead of .bind
1 parent 5c5c961 commit 0b3f0a4

File tree

1 file changed

+1
-1
lines changed
  • grpc-examples/src/main/java/io/vertx/example/grpc/health

1 file changed

+1
-1
lines changed

grpc-examples/src/main/java/io/vertx/example/grpc/health/Server.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public Future<?> start() {
4444
HealthService healthService = HealthService.create(vertx);
4545

4646
// Bind the health service
47-
healthService.bind(rpcServer);
47+
rpcServer.addService(healthService);
4848

4949
// By default, the health service always returns SERVING status for all services if they were registered through addService.
5050
// but you can register a specific health check for a specific service.

0 commit comments

Comments
 (0)