File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
quickwit/quickwit-serve/src Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ use quickwit_proto::tonic::transport::server::TcpIncoming;
32
32
use quickwit_proto:: tonic:: transport:: { Certificate , Identity , Server , ServerTlsConfig } ;
33
33
use tokio:: net:: TcpListener ;
34
34
use 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 ;
35
37
use tonic_reflection:: server:: { ServerReflection , ServerReflectionServer } ;
36
38
use tracing:: * ;
37
39
@@ -208,10 +210,12 @@ pub(crate) async fn start_grpc_server(
208
210
DeveloperServiceClient :: new ( developer_service)
209
211
. as_grpc_service ( DeveloperApiServer :: MAX_GRPC_MESSAGE_SIZE )
210
212
} ;
211
- let reflection_service = build_reflection_service ( & file_descriptor_sets) ?;
212
-
213
213
enabled_grpc_services. insert ( "health" ) ;
214
+ file_descriptor_sets. push ( HEALTH_FILE_DESCRIPTOR_SET ) ;
215
+
214
216
enabled_grpc_services. insert ( "reflection" ) ;
217
+ file_descriptor_sets. push ( REFLECTION_FILE_DESCRIPTOR_SET ) ;
218
+ let reflection_service = build_reflection_service ( & file_descriptor_sets) ?;
215
219
216
220
let server_router = server
217
221
. add_service ( cluster_grpc_service)
You can’t perform that action at this time.
0 commit comments