Skip to content

Commit

Permalink
Update src/journal/src/Journal/Internal/ByteBuffer.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Gustafsson <60788891+symbiont-daniel-gustafsson@users.noreply.github.com>
  • Loading branch information
1 parent ad1aae1 commit e05a081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/journal/src/Journal/Internal/ByteBuffer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ getByteString bb len = do

getLazyByteString :: ByteBuffer -> Int -> IO LBS.ByteString
getLazyByteString bb len = do
bytes <- replicateM len (getByte bb)
return (LBS.packBytes bytes)
bs <- getByteString bb len
return (LBS.fromStrict bs)

getByteStringAt :: ByteBuffer -> Int -> Int -> IO BS.ByteString
getByteStringAt bb offset len = do
Expand Down

0 comments on commit e05a081

Please sign in to comment.