summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange/Block.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Block.hs')
-rw-r--r--src/Network/BitTorrent/Exchange/Block.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Exchange/Block.hs b/src/Network/BitTorrent/Exchange/Block.hs
index ca635a75..5ab73b65 100644
--- a/src/Network/BitTorrent/Exchange/Block.hs
+++ b/src/Network/BitTorrent/Exchange/Block.hs
@@ -144,7 +144,7 @@ instance Pretty (Block BL.ByteString) where
144 144
145-- | Get size of block /payload/ in bytes. 145-- | Get size of block /payload/ in bytes.
146blockSize :: Block BL.ByteString -> BlockSize 146blockSize :: Block BL.ByteString -> BlockSize
147blockSize blk = fromIntegral (BL.length (blkData blk)) 147blockSize = fromIntegral . BL.length . blkData
148{-# INLINE blockSize #-} 148{-# INLINE blockSize #-}
149 149
150-- | Get block index of a block. 150-- | Get block index of a block.