mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-23 10:52:28 +00:00
add test for addSndQueue
This commit is contained in:
3 files changed
+17
-2
No files matched your search
@@ -294,6 +294,7 @@ instance MonadUnliftIO m => MonadAgentStore SQLiteStore m where
|
||||
>>= return . fmap (SomeConn SCSend . SendConnection connAlias)
|
||||
Right (_, _) -> return $ Left SEBadConn
|
||||
|
||||
-- TODO make transactional
|
||||
addSndQueue :: SQLiteStore -> ConnAlias -> SendQueue -> m (Either StoreError (Connection CDuplex))
|
||||
addSndQueue st connAlias sndQueue = do
|
||||
serverId <- upsertServer st (server (sndQueue :: SendQueue))
|
||||
|
||||
Reference in new issue
Block a user