mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-06-07 11:02:05 +00:00
notes
This commit is contained in:
@@ -52,6 +52,3 @@ Creates a temp table with aggregated message stats, then updates `msg_queues` in
|
||||
|
||||
`deleteQueueSize` calls `getQueueSize` BEFORE `deleteStoreQueue`. The returned size is the count at query time — a concurrent `writeMsg` between the size query and the delete means the reported size is stale. This is acceptable because the size is used for statistics, not for correctness.
|
||||
|
||||
## unsafeMaxLenBS
|
||||
|
||||
`toMessage` uses `C.unsafeMaxLenBS` to bypass the `MaxLen` length check on message bodies read from the database. A TODO comment questions this choice. If the database contains oversized data, the length invariant is silently violated.
|
||||
|
||||
Reference in New Issue
Block a user