mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 03:42:07 +08:00
Using existing topic name constant
This commit is contained in:
@@ -50,8 +50,6 @@ import java.util.stream.Collectors;
|
||||
public class TopicManagerServiceImpl implements TopicManagerService {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(TopicManagerServiceImpl.class);
|
||||
|
||||
private static final String CONSUMER_OFFSETS_TOPIC = "__consumer_offsets";
|
||||
|
||||
@Autowired
|
||||
private TopicDao topicDao;
|
||||
|
||||
@@ -277,7 +275,7 @@ public class TopicManagerServiceImpl implements TopicManagerService {
|
||||
}
|
||||
Map<Long, Map<String, TopicDO>> topicMap = new HashMap<>(appList.size());
|
||||
for (TopicDO topicDO: topicList) {
|
||||
if (topicDO.getTopicName().equals(CONSUMER_OFFSETS_TOPIC)) {
|
||||
if (topicDO.getTopicName().equals(KafkaConstant.COORDINATOR_TOPIC_NAME)) {
|
||||
continue;
|
||||
}
|
||||
Map<String, TopicDO> subTopicMap = topicMap.getOrDefault(topicDO.getClusterId(), new HashMap<>());
|
||||
|
||||
Reference in New Issue
Block a user