Skip to content

Commit c4f6240

Browse files
committed
Merge branch 'master' into ep/smp-rcv-service
2 parents 8e781a6 + a2d3528 commit c4f6240

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

simplexmq.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 1.12
22

33
name: simplexmq
4-
version: 6.4.3.0
4+
version: 6.4.4.0
55
synopsis: SimpleXMQ message broker
66
description: This package includes <./docs/Simplex-Messaging-Server.html server>,
77
<./docs/Simplex-Messaging-Client.html client> and

src/Simplex/Messaging/Agent/Store.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ data StoreError
670670
| -- | Invitation not found
671671
SEInvitationNotFound String InvitationId
672672
| -- | Message not found
673-
SEMsgNotFound
673+
SEMsgNotFound String
674674
| -- | Command not found
675675
SECmdNotFound
676676
| -- | Currently not used. The intention was to pass current expected queue status in methods,

src/Simplex/Messaging/Agent/Store/AgentStore.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ createSndMsgDelivery db connId SndQueue {dbQueueId} msgId =
967967

968968
getSndMsgViaRcpt :: DB.Connection -> ConnId -> InternalSndId -> IO (Either StoreError SndMsg)
969969
getSndMsgViaRcpt db connId sndMsgId =
970-
firstRow toSndMsg SEMsgNotFound $
970+
firstRow toSndMsg (SEMsgNotFound "getSndMsgViaRcpt") $
971971
DB.query
972972
db
973973
[sql|
@@ -1103,15 +1103,15 @@ getExpiredSndMessages db connId SndQueue {dbQueueId} expireTs = do
11031103
setMsgUserAck :: DB.Connection -> ConnId -> InternalId -> IO (Either StoreError (RcvQueue, SMP.MsgId))
11041104
setMsgUserAck db connId agentMsgId = runExceptT $ do
11051105
(dbRcvId, srvMsgId) <-
1106-
ExceptT . firstRow id SEMsgNotFound $
1106+
ExceptT . firstRow id (SEMsgNotFound "setMsgUserAck") $
11071107
DB.query db "SELECT rcv_queue_id, broker_id FROM rcv_messages WHERE conn_id = ? AND internal_id = ?" (connId, agentMsgId)
11081108
rq <- ExceptT $ getRcvQueueById db connId dbRcvId
11091109
liftIO $ DB.execute db "UPDATE rcv_messages SET user_ack = ? WHERE conn_id = ? AND internal_id = ?" (BI True, connId, agentMsgId)
11101110
pure (rq, srvMsgId)
11111111

11121112
getRcvMsg :: DB.Connection -> ConnId -> InternalId -> IO (Either StoreError RcvMsg)
11131113
getRcvMsg db connId agentMsgId =
1114-
firstRow toRcvMsg SEMsgNotFound $
1114+
firstRow toRcvMsg (SEMsgNotFound "getRcvMsg") $
11151115
DB.query
11161116
db
11171117
[sql|
@@ -1161,7 +1161,7 @@ checkRcvMsgHashExists db connId hash = do
11611161

11621162
getRcvMsgBrokerTs :: DB.Connection -> ConnId -> SMP.MsgId -> IO (Either StoreError BrokerTs)
11631163
getRcvMsgBrokerTs db connId msgId =
1164-
firstRow fromOnly SEMsgNotFound $
1164+
firstRow fromOnly (SEMsgNotFound "getRcvMsgBrokerTs") $
11651165
DB.query db "SELECT broker_ts FROM rcv_messages WHERE conn_id = ? AND broker_id = ?" (connId, Binary msgId)
11661166

11671167
deleteMsg :: DB.Connection -> ConnId -> InternalId -> IO ()

0 commit comments

Comments
 (0)