fix: fan out receipts and align tenant schema

This commit is contained in:
richjohnrambo
2026-09-16 22:09:52 +08:00
parent 6729f40665
commit 0ae4af0c31
6 changed files with 314 additions and 3 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ func realtimeMessageDedupKey(target string, msg *ServerComMessage) string {
return "data:" + topic + ":" + strconv.FormatInt(msg.Data.SeqId, 10)
}
if msg.Info != nil {
return "info:" + target + ":" + msg.Info.Event + ":" + strconv.FormatInt(msg.Info.SeqId, 10)
return "info:" + target + ":" + msg.Info.What + ":" + msg.Info.From + ":" + msg.Info.Event + ":" + strconv.FormatInt(msg.Info.SeqId, 10)
}
if msg.Pres != nil {
return "pres:" + target + ":" + msg.Pres.What + ":" + strconv.FormatInt(msg.Pres.SeqId, 10)