Skip to content

Commit

Permalink
Refine grpc server options of interceptor (#18943)
Browse files Browse the repository at this point in the history
Signed-off-by: yun.zhang <yun.zhang@zilliz.com>

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>
  • Loading branch information
jaime0815 committed Sep 1, 2022
1 parent 237d912 commit 0e4e796
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/distributed/proxy/service.go
Expand Up @@ -174,10 +174,6 @@ func (s *Server) startExternalGrpc(grpcPort int, errChan chan error) {
proxy.UnaryServerInterceptor(proxy.PrivilegeInterceptor),
logutil.UnaryTraceLoggerInterceptor,
)),
grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(
ot.StreamServerInterceptor(opts...),
grpc_auth.StreamServerInterceptor(proxy.AuthenticationInterceptor),
logutil.StreamTraceLoggerInterceptor)),
}

if Params.TLSMode == 1 {
Expand Down Expand Up @@ -263,14 +259,8 @@ func (s *Server) startInternalGrpc(grpcPort int, errChan chan error) {
grpc.MaxSendMsgSize(Params.ServerMaxSendSize),
grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer(
ot.UnaryServerInterceptor(opts...),
grpc_auth.UnaryServerInterceptor(proxy.AuthenticationInterceptor),
logutil.UnaryTraceLoggerInterceptor,
)),
grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(
ot.StreamServerInterceptor(opts...),
grpc_auth.StreamServerInterceptor(proxy.AuthenticationInterceptor),
logutil.StreamTraceLoggerInterceptor,
)),
)
proxypb.RegisterProxyServer(s.grpcInternalServer, s)
milvuspb.RegisterMilvusServiceServer(s.grpcInternalServer, s)
Expand Down

0 comments on commit 0e4e796

Please sign in to comment.