File tree Expand file tree Collapse file tree
quickwit/quickwit-serve/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ use quickwit_proto::tonic::transport::server::TcpIncoming;
3232use quickwit_proto:: tonic:: transport:: { Certificate , Identity , Server , ServerTlsConfig } ;
3333use tokio:: net:: TcpListener ;
3434use tonic_health:: pb:: health_server:: { Health , HealthServer } ;
35+ use tonic_health:: pb:: FILE_DESCRIPTOR_SET as HEALTH_FILE_DESCRIPTOR_SET ;
36+ use tonic_reflection:: pb:: FILE_DESCRIPTOR_SET as REFLECTION_FILE_DESCRIPTOR_SET ;
3537use tonic_reflection:: server:: { ServerReflection , ServerReflectionServer } ;
3638use tracing:: * ;
3739
@@ -208,10 +210,12 @@ pub(crate) async fn start_grpc_server(
208210 DeveloperServiceClient :: new ( developer_service)
209211 . as_grpc_service ( DeveloperApiServer :: MAX_GRPC_MESSAGE_SIZE )
210212 } ;
211- let reflection_service = build_reflection_service ( & file_descriptor_sets) ?;
212-
213213 enabled_grpc_services. insert ( "health" ) ;
214+ file_descriptor_sets. push ( HEALTH_FILE_DESCRIPTOR_SET ) ;
215+
214216 enabled_grpc_services. insert ( "reflection" ) ;
217+ file_descriptor_sets. push ( REFLECTION_FILE_DESCRIPTOR_SET ) ;
218+ let reflection_service = build_reflection_service ( & file_descriptor_sets) ?;
215219
216220 let server_router = server
217221 . add_service ( cluster_grpc_service)
You can’t perform that action at this time.
0 commit comments