mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
Refine grpc server options of interceptor (#18943)
Signed-off-by: yun.zhang <yun.zhang@zilliz.com> Signed-off-by: yun.zhang <yun.zhang@zilliz.com>
This commit is contained in:
parent
237d912625
commit
0e4e7966ec
@ -174,10 +174,6 @@ func (s *Server) startExternalGrpc(grpcPort int, errChan chan error) {
|
|||||||
proxy.UnaryServerInterceptor(proxy.PrivilegeInterceptor),
|
proxy.UnaryServerInterceptor(proxy.PrivilegeInterceptor),
|
||||||
logutil.UnaryTraceLoggerInterceptor,
|
logutil.UnaryTraceLoggerInterceptor,
|
||||||
)),
|
)),
|
||||||
grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(
|
|
||||||
ot.StreamServerInterceptor(opts...),
|
|
||||||
grpc_auth.StreamServerInterceptor(proxy.AuthenticationInterceptor),
|
|
||||||
logutil.StreamTraceLoggerInterceptor)),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if Params.TLSMode == 1 {
|
if Params.TLSMode == 1 {
|
||||||
@ -263,14 +259,8 @@ func (s *Server) startInternalGrpc(grpcPort int, errChan chan error) {
|
|||||||
grpc.MaxSendMsgSize(Params.ServerMaxSendSize),
|
grpc.MaxSendMsgSize(Params.ServerMaxSendSize),
|
||||||
grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer(
|
grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer(
|
||||||
ot.UnaryServerInterceptor(opts...),
|
ot.UnaryServerInterceptor(opts...),
|
||||||
grpc_auth.UnaryServerInterceptor(proxy.AuthenticationInterceptor),
|
|
||||||
logutil.UnaryTraceLoggerInterceptor,
|
logutil.UnaryTraceLoggerInterceptor,
|
||||||
)),
|
)),
|
||||||
grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(
|
|
||||||
ot.StreamServerInterceptor(opts...),
|
|
||||||
grpc_auth.StreamServerInterceptor(proxy.AuthenticationInterceptor),
|
|
||||||
logutil.StreamTraceLoggerInterceptor,
|
|
||||||
)),
|
|
||||||
)
|
)
|
||||||
proxypb.RegisterProxyServer(s.grpcInternalServer, s)
|
proxypb.RegisterProxyServer(s.grpcInternalServer, s)
|
||||||
milvuspb.RegisterMilvusServiceServer(s.grpcInternalServer, s)
|
milvuspb.RegisterMilvusServiceServer(s.grpcInternalServer, s)
|
||||||
|
Loading…
Reference in New Issue
Block a user