Skip to content

Commit

Permalink
Merge pull request #419 from dromara/dev
Browse files Browse the repository at this point in the history
Dev To Master
  • Loading branch information
yanhom1314 committed Apr 11, 2024
2 parents 0f2801c + df080bd commit 3c41ef1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.dromara.dynamictp.common.util.ReflectionUtil;
import org.dromara.dynamictp.core.support.ThreadPoolExecutorProxy;
import org.dromara.dynamictp.jvmti.JVMTI;
import org.springframework.util.ReflectionUtils;

import java.util.Objects;
import java.util.concurrent.ThreadPoolExecutor;
Expand Down Expand Up @@ -102,6 +103,9 @@ public void adaptProducerExecutors() {
return;
}
for (DefaultMQProducer defaultMQProducer : beans) {
if (Objects.isNull(ReflectionUtils.findMethod(DefaultMQProducerImpl.class, "getAsyncSenderExecutor"))) {
continue;
}
val producer = (DefaultMQProducerImpl) ReflectionUtil.getFieldValue(DefaultMQProducer.class,
"defaultMQProducerImpl", defaultMQProducer);
if (Objects.isNull(producer)) {
Expand Down

0 comments on commit 3c41ef1

Please sign in to comment.