You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2023/03/10 09:01:10 UTC

[rocketmq-clients] branch master updated: Remove redundant constructor

This is an automated email from the ASF dual-hosted git repository.

aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git


The following commit(s) were added to refs/heads/master by this push:
     new 72657ee5 Remove redundant constructor
72657ee5 is described below

commit 72657ee59fca9946beed2ee5e4667c011296d432
Author: Aaron Ai <ya...@gmail.com>
AuthorDate: Thu Mar 9 11:27:53 2023 +0800

    Remove redundant constructor
---
 README-CN.md                                      | 2 +-
 csharp/rocketmq-client-csharp/FilterExpression.cs | 8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/README-CN.md b/README-CN.md
index c28cabbf..96227d20 100644
--- a/README-CN.md
+++ b/README-CN.md
@@ -15,7 +15,7 @@
 
 ## 概述
 
-[Apache RocketMQ](https://rocketmq.apache.org/) 的多语言客户端实现。遵从 [rocketmq-apis](https://github.com/apache/rocketmq-apis) 约束,使用 [Protocol Buffers](https://developers.google.com/protocol-buffers) 和 [gRPC](https://grpc.io/) 替代了 4.x 的旧有协议。
+[Apache RocketMQ](https://rocketmq.apache.org/) 的多语言客户端实现,也被称为 RocketMQ 5.x 客户端。遵从 [rocketmq-apis](https://github.com/apache/rocketmq-apis) 约束,使用 [Protocol Buffers](https://developers.google.com/protocol-buffers) 和 [gRPC](https://grpc.io/) 替代了 4.x 的旧有协议。
 
 ## 设计目标
 
diff --git a/csharp/rocketmq-client-csharp/FilterExpression.cs b/csharp/rocketmq-client-csharp/FilterExpression.cs
index 07a4af5a..beef7863 100644
--- a/csharp/rocketmq-client-csharp/FilterExpression.cs
+++ b/csharp/rocketmq-client-csharp/FilterExpression.cs
@@ -19,18 +19,12 @@ namespace Org.Apache.Rocketmq
 {
     public class FilterExpression
     {
-        public FilterExpression(string expression, ExpressionType type)
+        public FilterExpression(string expression, ExpressionType type = ExpressionType.Tag)
         {
             Expression = expression;
             Type = type;
         }
 
-        public FilterExpression(string expression)
-        {
-            Expression = expression;
-            Type = ExpressionType.Tag;
-        }
-
         public ExpressionType Type { get; }
         public string Expression { get; }
     }