From ce4478aa29e46db4e4b58e90142a63f5fd9168d8 Mon Sep 17 00:00:00 2001 From: von gosling Date: Wed, 28 Aug 2019 11:14:54 +0800 Subject: [PATCH] Revert "Remove end of line comment and add override annotation when rewrite method (#1420)" (#1423) This reverts commit 83de262c84bd18cab5a7e58a19e1490e9d680122. --- .../rocketmq/client/trace/AsyncTraceDispatcher.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java b/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java index 34af0fbe..ca3bcfa2 100644 --- a/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java +++ b/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java @@ -87,12 +87,12 @@ public class AsyncTraceDispatcher implements TraceDispatcher { } else { this.traceTopicName = MixAll.RMQ_SYS_TRACE_TOPIC; } - this.traceExecutor = new ThreadPoolExecutor( - 10, - 20, - 1000 * 60, - TimeUnit.MILLISECONDS, - this.appenderQueue, + this.traceExecutor = new ThreadPoolExecutor(// + 10, // + 20, // + 1000 * 60, // + TimeUnit.MILLISECONDS, // + this.appenderQueue, // new ThreadFactoryImpl("MQTraceSendThread_")); traceProducer = getAndCreateTraceProducer(rpcHook); } @@ -133,7 +133,6 @@ public class AsyncTraceDispatcher implements TraceDispatcher { this.hostConsumer = hostConsumer; } - @Override public void start(String nameSrvAddr, AccessChannel accessChannel) throws MQClientException { if (isStarted.compareAndSet(false, true)) { traceProducer.setNamesrvAddr(nameSrvAddr); -- GitLab