chain unary interceptor

This commit is contained in:
withchao
2023-07-06 11:23:57 +08:00
parent 28fad04d5c
commit ff22ea7108
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -153,5 +153,5 @@ func RpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary
}
func GrpcServer() grpc.ServerOption {
return grpc.UnaryInterceptor(RpcServerInterceptor)
return grpc.ChainUnaryInterceptor(RpcServerInterceptor)
}