Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}

Expand Down Expand Up @@ -96,7 +97,7 @@ withReplayedBlock tr = do
-> (LoggingContext, Either TraceControl (ChainDB.TraceEvent blk))
-> IO (Maybe (LoggingContext, Either TraceControl ReplayBlockStats))
process var (ctx, Right msg) = modifyMVar var $ \st -> do
let (st', mbStats) = mbProduceBlockStats msg st
let !(!st', mbStats) = mbProduceBlockStats msg st
pure (st', fmap ((ctx,) . Right) mbStats)
process _ (ctx, Left control) = pure (Just (ctx, Left control))

Expand Down
Loading