Skip to content

Commit

Permalink
bug fix:getSubscribers (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseone committed Mar 16, 2021
1 parent 25890c8 commit dbf75ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ public static boolean matchTopic(String pattenTopic, String topic) {
return true;
}
//verity topic
String verifyTopicPre = TopicManager.verifyChannelPrefix + TopicManager.topicNeedVerifyPrefix + topic;
StringBuilder sb = new StringBuilder();
sb.append(TopicManager.verifyChannelPrefix).append(TopicManager.topicNeedVerifyPrefix).append(topic).append('_');
String verifyTopicPre = sb.toString();
if (pattenTopic.startsWith(verifyTopicPre)) {
return true;
}
Expand Down

0 comments on commit dbf75ce

Please sign in to comment.