提交 9db2acdb 编写于 作者: D duhengforever

Rename variable name

上级 da9d5c3f
......@@ -43,7 +43,7 @@ public class TransactionProducer {
return thread;
}
});
LocalTransactionExecuter executor = new LocalTransactionExecuterImpl();
LocalTransactionExecuter localTransactionExecuter = new LocalTransactionExecuterImpl();
producer.setExecutorService(executorService);
producer.setTransactionCheckListener(transactionListener);
producer.start();
......@@ -54,7 +54,7 @@ public class TransactionProducer {
Message msg =
new Message("TopicTest1234", tags[i % tags.length], "KEY" + i,
("Hello RocketMQ " + i).getBytes(RemotingHelper.DEFAULT_CHARSET));
SendResult sendResult = producer.sendMessageInTransaction(msg, executor,null);
SendResult sendResult = producer.sendMessageInTransaction(msg, localTransactionExecuter,null);
System.out.printf("%s%n", sendResult);
Thread.sleep(10);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册