smp-server: fix queue cache collisions and leaks

This commit is contained in:
shum
2026-10-04 11:20:48 +00:00
parent 83eb9a55fd
commit 8eade7ef1b
6 changed files with 172 additions and 58 deletions
@@ -83,6 +83,8 @@ instance StoreQueueClass PostgresQueue where
{-# INLINE queueRec #-}
withQueueLock PostgresQueue {} _ = id -- TODO [messages] maybe it's just transaction?
{-# INLINE withQueueLock #-}
removeQueueLock _ = pure ()
{-# INLINE removeQueueLock #-}
newtype DBTransaction = DBTransaction {dbConn :: DB.Connection}