You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/05/05 01:08:42 UTC

[GitHub] [rocketmq] lwclover commented on issue #4223: Delete repeated calls in MQClientInstance.start

lwclover commented on issue #4223:
URL: https://github.com/apache/rocketmq/issues/4223#issuecomment-1118073214

   DefaultMQProducer starts as follows:
   DefaultMQProducer.start() -> DefaultMQProducerImpl.start() -> DefaultMQProducerImpl.start(true) -> MQClientInstance.start() -> DefaultMQProducerImpl.start(false).
   In  DefaultMQProducerImpl.start(false) call 
   
   ```
   this.mQClientFactory.sendHeartbeatToAllBrokerWithLock();
   RequestFutureHolder.getInstance().startScheduledTask(this);
   ```
   DefaultMQProducerImpl.start(true) call again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org