Skip to content

Commit 51a5ae2

Browse files
committed
trying fix from mongodb-haskell#153
1 parent 163e5c6 commit 51a5ae2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Database/MongoDB/Internal/Protocol.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,7 @@ callOpMsg pipe request flagBit params = do
309309
let (docs, docs') =
310310
( fromJust $ cast $ valueAt "nextBatch" doc :: [Document]
311311
, fromJust $ cast $ valueAt "nextBatch" doc' :: [Document])
312-
id' = fromJust $ cast $ valueAt "id" doc' :: Int32
313-
(rt, check id' (rt, rep{ sections = docs' ++ docs })) -- todo: avoid (++)
312+
(rt, rep{sections= docs' ++ docs}) -- todo: avoid (++)
314313
-- Since we use this to process moreToCome messages, we
315314
-- know that there will be a nextBatch key in the document
316315
_ -> error "Impossible"

0 commit comments

Comments
 (0)