Skip to content

Commit

Permalink
linera-service: enable gRPC-Web on the right service
Browse files Browse the repository at this point in the history
  • Loading branch information
Twey committed Mar 20, 2024
1 parent ea2ec89 commit bcbae8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linera-service/src/grpc_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl GrpcProxy {
.set_serving::<ValidatorNodeServer<GrpcProxy>>()
.await;
let internal_server = Server::builder()
.add_service(tonic_web::enable(self.as_notifier_service()))
.add_service(self.as_notifier_service())
.serve(self.internal_address());
let reflection_service = tonic_reflection::server::Builder::configure()
.register_encoded_file_descriptor_set(linera_rpc::FILE_DESCRIPTOR_SET)
Expand All @@ -227,7 +227,7 @@ impl GrpcProxy {
.accept_http1(true)
.add_service(health_service)
.add_service(reflection_service)
.add_service(self.as_validator_node())
.add_service(tonic_web::enable(self.as_validator_node()))
.serve(self.public_address());

select! {
Expand Down

0 comments on commit bcbae8f

Please sign in to comment.