Skip to content

Commit

Permalink
Merge pull request #698 from RongtongJin/dev-1216
Browse files Browse the repository at this point in the history
Upgrade rocketmq client version to 5.3.1
  • Loading branch information
panzhi33 authored Dec 16, 2024
2 parents b2717f3 + fc89a04 commit a65b16b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rocketmq-spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<rocketmq.spring.boot.version>2.3.2-SNAPSHOT</rocketmq.spring.boot.version>

<rocketmq.version>5.3.0</rocketmq.version>
<rocketmq.version>5.3.1</rocketmq.version>
<slf4j.version>1.7.25</slf4j.version>
<jackson.version>2.11.1</jackson.version>
<fastjson.version>1.2.83</fastjson.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public static DefaultMQProducer createDefaultMQProducer(String groupName, String

if (isEnableMsgTrace) {
try {
AsyncTraceDispatcher dispatcher = new AsyncTraceDispatcher(groupName, TraceDispatcher.Type.PRODUCE, customizedTraceTopic, isEnableAcl ? new AclClientRPCHook(new SessionCredentials(ak, sk)) : null);
AsyncTraceDispatcher dispatcher = new AsyncTraceDispatcher(groupName, TraceDispatcher.Type.PRODUCE, 10, customizedTraceTopic, isEnableAcl ? new AclClientRPCHook(new SessionCredentials(ak, sk)) : null);
dispatcher.setHostProducer(producer.getDefaultMQProducerImpl());
Field field = DefaultMQProducer.class.getDeclaredField("traceDispatcher");
field.setAccessible(true);
Expand All @@ -285,9 +285,9 @@ public static DefaultMQProducer createDefaultMQProducer(String groupName, String
}

public static DefaultLitePullConsumer createDefaultLitePullConsumer(String nameServer, String accessChannel,
String groupName, String topicName, MessageModel messageModel, SelectorType selectorType,
String selectorExpression, String ak, String sk, int pullBatchSize, boolean useTLS)
throws MQClientException {
String groupName, String topicName, MessageModel messageModel, SelectorType selectorType,
String selectorExpression, String ak, String sk, int pullBatchSize, boolean useTLS)
throws MQClientException {
DefaultLitePullConsumer litePullConsumer = null;
if (StringUtils.hasLength(ak) && StringUtils.hasLength(sk)) {
litePullConsumer = new DefaultLitePullConsumer(groupName, new AclClientRPCHook(new SessionCredentials(ak, sk)));
Expand Down

0 comments on commit a65b16b

Please sign in to comment.