File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -248,16 +248,15 @@ namespace gaia {
248
248
// Allocate memory for the automatic selected port.
249
249
int * selectedPort = new int (0 );
250
250
251
- // Define health service and add it to gRPC server.
252
- grpc::HealthCheckServiceInterface* health_svc = server->GetHealthCheckService ();
253
- health_svc->SetServingStatus (" plugin" , true );
254
-
255
251
// Enable health check service and start grpc server.
256
252
grpc::EnableDefaultHealthCheckService (true );
257
253
builder.AddListeningPort (LISTEN_ADDRESS + string (" :0" ), grpc::SslServerCredentials (ssl_ops), selectedPort);
258
254
builder.RegisterService (&service);
259
- builder.RegisterService (&health_svc);
260
255
unique_ptr<Server> server (builder.BuildAndStart ());
256
+
257
+ // Define health service.
258
+ grpc::HealthCheckServiceInterface* health_svc = server->GetHealthCheckService ();
259
+ health_svc->SetServingStatus (" plugin" , true );
261
260
262
261
// Output the address and service name to stdout.
263
262
// hashicorp go-plugin will use that to establish connection.
You can’t perform that action at this time.
0 commit comments