Skip to content

Commit

Permalink
✨ mica-mqtt-broker 优化,添加默认 stream 长度。
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Jul 17, 2024
1 parent fe8074d commit 0d4a97a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public boolean send(Message message) {
// 手动序列化和反序列化,避免 redis 序列化不一致问题
String topic = message.getTopic();
String key = topic == null ? message.getClientId() : topic;
streamTemplate.send(channel, key, message, messageSerializer::serialize);
long maxLen = 10_0000;
streamTemplate.send(channel, key, message, messageSerializer::serialize, maxLen);
return true;
}

Expand Down

0 comments on commit 0d4a97a

Please sign in to comment.