Skip to content

Commit

Permalink
调整map名称
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Feb 25, 2025
1 parent 768cf5c commit 768dfc2
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ public class RocketMqSchedulerRebuildSubscriptionInterceptor extends RocketMqAbs

@Override
public ExecuteContext doAfter(ExecuteContext context) throws Exception {
ConcurrentMap<String, Object> map = (ConcurrentMap<String, Object>) context.getResult();
ConcurrentMap<String, Object> subscriptionInner = (ConcurrentMap<String, Object>) context.getResult();
RebalanceImpl balance = (RebalanceImpl) context.getObject();
List<Object> retrySubscriptionDatas = new ArrayList<>();
if (balance.getConsumerGroup() == null || !isGrayTagChanged(map, balance, retrySubscriptionDatas)) {
if (balance.getConsumerGroup() == null
|| !isGrayTagChanged(subscriptionInner, balance, retrySubscriptionDatas)) {

Check failure on line 54 in sermant-plugins/sermant-mq-grayscale/mq-grayscale-rocketmq-plugin/src/main/java/io/sermant/mq/grayscale/rocketmq/interceptor/RocketMqSchedulerRebuildSubscriptionInterceptor.java

View workflow job for this annotation

GitHub Actions / Checkstyle

[Checkstyle Check] reported by reviewdog 🐶 '||' has incorrect indentation level 12, expected level should be 16. Raw Output: /home/runner/work/Sermant/Sermant/./sermant-plugins/sermant-mq-grayscale/mq-grayscale-rocketmq-plugin/src/main/java/io/sermant/mq/grayscale/rocketmq/interceptor/RocketMqSchedulerRebuildSubscriptionInterceptor.java:54:13: error: '||' has incorrect indentation level 12, expected level should be 16. (com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck)
return context;
}
for (Object subscriptionData : map.values()) {
for (Object subscriptionData : subscriptionInner.values()) {
String topic = RocketMqReflectUtils.getTopic(subscriptionData);
if (topic.contains(RETRY_TOPIC_FLAG)) {
continue;
Expand All @@ -70,10 +71,10 @@ public ExecuteContext doAfter(ExecuteContext context) throws Exception {
return context;
}

private boolean isGrayTagChanged(ConcurrentMap<String, Object> map, RebalanceImpl balance,
private boolean isGrayTagChanged(ConcurrentMap<String, Object> subscriptionInner, RebalanceImpl balance,
List<Object> retrySubscriptionDatas) {
String topic = "";
for (Object subscriptionData : map.values()) {
for (Object subscriptionData : subscriptionInner.values()) {
String tempTopic = RocketMqReflectUtils.getTopic(subscriptionData);
if (!tempTopic.contains(RETRY_TOPIC_FLAG)) {
topic = tempTopic;
Expand Down

0 comments on commit 768dfc2

Please sign in to comment.