Skip to content

Commit

Permalink
fix(journal): add sleep to avoid spin loop on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Mar 21, 2022
1 parent b5cf732 commit 9c274b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/journal/src/Journal/MP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ readManyJournalSC jour sub state0 process = do
state' <- process state bs
incrBytesConsumed_ (jMetadata jour) sub
(align (int322Int len) fRAME_ALIGNMENT)
threadDelay 1
go (steps + 1) (offset + align (int322Int len) fRAME_ALIGNMENT) position state'

readManyLazyJournalSC :: forall s. Journal -> Subscriber -> s -> (s -> LBS.ByteString -> IO s)
Expand Down

0 comments on commit 9c274b0

Please sign in to comment.