shadowing

This commit is contained in:
Evgeny Poberezkin
2024-08-26 10:21:22 +01:00
parent 756a1398a6
commit 60783fd9dd
+2 -2
View File
@@ -732,9 +732,9 @@ send th c@Client {sndQ, msgQ, sessionId} stats = do
-- with other requests responses.
mapM_ (atomically . writeTBQueue msgQ) $ L.nonEmpty msgs_
splitMessages :: [Transmission BrokerMsg] -> Transmission BrokerMsg -> ([Transmission BrokerMsg], Transmission BrokerMsg)
splitMessages msgs t@(corrId, entId, cmd) = case cmd of
splitMessages msgs t@(corrId, entId, cmd') = case cmd' of
-- replace MSG response with OK, accumulating MSG in a separate list.
MSG {} -> ((CorrId "", entId, cmd) : msgs, (corrId, entId, OK))
MSG {} -> ((CorrId "", entId, cmd') : msgs, (corrId, entId, OK))
_ -> (msgs, t)
sendMsg :: Transport c => MVar (THandleSMP c 'TServer) -> Client -> IO ()