mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-14 11:48:28 -04:00
99bd7ac591
Closes #1024. Before this change, we would serialize messages **before** inserting into the send queue. Because we commit the tx only after inserting into the send queue, this meant we were holding onto the database lock unnecessarily. After this change, we serialize messages **after** inserting into the send queue. This means we serialize only after committing the tx.