Skip to content

Commit

Permalink
Add bang patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jan 22, 2021
1 parent ca97c58 commit dc6ca79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE EmptyDataDeriving #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
Expand Down Expand Up @@ -111,7 +112,7 @@ blockFetchServer tracer chainDB _version registry = senderSide

sendBlocks :: Int -> ChainDB.Iterator m blk (WithPoint blk (Serialised blk))
-> m (BlockFetchSendBlocks (Serialised blk) (Point blk) m ())
sendBlocks blockCount it = do
sendBlocks !blockCount it = do
next <- ChainDB.iteratorNext it
case next of
IteratorResult blk ->
Expand Down

0 comments on commit dc6ca79

Please sign in to comment.