Skip to content

Commit 2c82ddd

Browse files
committed
fixup! Fix a bug in parDistributeScan and block on buffer in sendToWorker_
1 parent 7f014ca commit 2c82ddd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Streamly/Internal/Data/Scanl/Concurrent.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ parDistributeScan cfg getFolds (Stream sstep state) =
242242
then do
243243
liftIO $ takeMVar db
244244
return $ Skip (ScanDrain q db running)
245-
else return $ Yield outputs ScanStop
246-
245+
else return $ Yield outputs (ScanDrain q db running)
247246
step _ ScanStop = return Stop
248247

249248
{-# ANN type DemuxState Fuse #-}

0 commit comments

Comments
 (0)