fix: 仅向已握手连接推送并拆分调度循环

This commit is contained in:
Nixevol
2026-09-30 16:22:43 +08:00
parent ad4f13193c
commit 83521f4b87
14 changed files with 1192 additions and 290 deletions
+3
View File
@@ -276,6 +276,9 @@ INSERT INTO messages(
if result.State == StateDispatched {
a.wakeReceivers(ctx, result.ID, senderID)
}
if result.State == StateScheduled {
a.NotifyDispatch()
}
return result, nil
}