We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 325af9e commit 9f22fdfCopy full SHA for 9f22fdf
cardano-node/src/Cardano/Node/Tracing/Tracers/BlockReplayProgress.hs
@@ -1,3 +1,4 @@
1
+{-# LANGUAGE BangPatterns #-}
2
{-# LANGUAGE RecordWildCards #-}
3
{-# LANGUAGE TupleSections #-}
4
@@ -96,7 +97,7 @@ withReplayedBlock tr = do
96
97
-> (LoggingContext, Either TraceControl (ChainDB.TraceEvent blk))
98
-> IO (Maybe (LoggingContext, Either TraceControl ReplayBlockStats))
99
process var (ctx, Right msg) = modifyMVar var $ \st -> do
- let (st', mbStats) = mbProduceBlockStats msg st
100
+ let !(!st', mbStats) = mbProduceBlockStats msg st
101
pure (st', fmap ((ctx,) . Right) mbStats)
102
process _ (ctx, Left control) = pure (Just (ctx, Left control))
103
0 commit comments