Skip to content

Commit

Permalink
fix(journal): appendBS should append the bytestring after the header
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Jan 18, 2022
1 parent 1e2817a commit 4e24eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/journal/src/Journal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ appendBS' jour bs = do
case mClaim of
Nothing -> return Nothing
Just (_offset, bufferClaim) -> do
putBS bufferClaim 0 bs
putBS bufferClaim hEADER_LENGTH bs
Just <$> commit bufferClaim

tee :: Journal -> Socket -> Int -> IO ByteString
Expand Down

0 comments on commit 4e24eca

Please sign in to comment.