Skip to content

Commit

Permalink
[ISSUE apache#7813] setStartDetectorEnable Not effective
Browse files Browse the repository at this point in the history
  • Loading branch information
leizhiyuan authored Feb 7, 2024
1 parent d385588 commit f525a34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1810,4 +1810,8 @@ public void setSendLatencyFaultEnable(final boolean sendLatencyFaultEnable) {
public DefaultMQProducer getDefaultMQProducer() {
return defaultMQProducer;
}

public MQFaultStrategy getMqFaultStrategy() {
return mqFaultStrategy;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1366,4 +1366,10 @@ public List<String> getTopics() {
public void setTopics(List<String> topics) {
this.topics = topics;
}

@Override
public void setStartDetectorEnable(boolean startDetectorEnable) {
super.setStartDetectorEnable(startDetectorEnable);
this.defaultMQProducerImpl.getMqFaultStrategy().setStartDetectorEnable(startDetectorEnable);
}
}

0 comments on commit f525a34

Please sign in to comment.