SteveYurongSu commented on code in PR #12724:
URL: https://github.com/apache/iotdb/pull/12724#discussion_r1638082469
##########
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConfig.java:
##########
@@ -101,6 +101,13 @@ public Map<String, String> getAttributesWithRealtimeMode()
{
: Collections.singletonMap("realtime.mode", "hybrid");
}
+ public Map<String, String> getAttributesWithSourceMode() {
+ return TopicConstant.MODE_QUERY_VALUE.equals(
+ attributes.getOrDefault(TopicConstant.MODE_KEY,
TopicConstant.MODE_DEFAULT_VALUE))
+ ? Collections.singletonMap("mode", "query")
+ : Collections.singletonMap("mode", "subscribe");
Review Comment:
Use static final fields in TopicConstant please
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]