-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing why append '/' to the end of topic name? #19
Comments
ping @pingww |
The main reason is to format it into a fixed format. As for the addition of a /, the reason is that there is a matching path in the trie, which can indeed be optimized. |
ok, thanks for answering. And found some code can be optimized:
|
"t/#/t2/" is not valid according to the mqtt protocol |
yes, I just want to suggest server should do this check anyway, like: #25 (comment) |
* fix '#' check in topicFilter link #19 * remove email & author info * Add licence header to file. Co-authored-by: wangfan <[email protected]> Co-authored-by: dinglei <[email protected]>
Have not find related explain, please give some description.
rocketmq-mqtt/mqtt-common/src/main/java/org/apache/rocketmq/mqtt/common/util/TopicUtils.java
Lines 27 to 44 in 9939eab
The text was updated successfully, but these errors were encountered: