Browse Source

修复topic订阅错误问题

zhou-hao 5 years ago
parent
commit
ba1c2ccc98

+ 1 - 1
jetlinks-components/gateway-component/src/main/java/org/jetlinks/community/gateway/supports/DefaultMessageGateway.java

@@ -186,7 +186,7 @@ public class DefaultMessageGateway implements MessageGateway {
             //加载会话已有的订阅信息
             session.getSubscriptions()
                 .map(Subscription::getTopic)
-                .flatMap(topic -> root.find(topic))
+                .flatMap(topic -> root.get(topic))
                 .subscribe(part -> part.addSessionId(getId()));
         }