GRPC Server: Move reflection to a separate gRPC service (#55872)

This commit is contained in:
Todd Treece
2022-09-28 14:00:46 -04:00
committed by GitHub
parent e8ac52ba0f
commit a281c26580
4 changed files with 38 additions and 4 deletions
+1 -4
View File
@@ -16,7 +16,6 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/reflection"
)
type Provider interface {
@@ -51,9 +50,7 @@ func ProvideService(cfg *setting.Cfg, apiKey apikey.Service, userService user.Se
opts = append(opts, grpc.Creds(credentials.NewTLS(cfg.GRPCServerTLSConfig)))
}
grpcServer := grpc.NewServer(opts...)
reflection.Register(grpcServer)
s.server = grpcServer
s.server = grpc.NewServer(opts...)
return s, nil
}