Skip to content

Commit 7c41ce7

Browse files
committed
fixup: cleaning up $ / eta reducing
1 parent 7a75d66 commit 7c41ce7

File tree

2 files changed

+2
-4
lines changed
  • ouroboros-consensus-protocol/src/ouroboros-consensus-protocol/Ouroboros/Consensus/Protocol

2 files changed

+2
-4
lines changed

ouroboros-consensus-protocol/src/ouroboros-consensus-protocol/Ouroboros/Consensus/Protocol/Ledger/HotKey.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ mkHotKeyWith initialStateMay maxKESEvolutions keyThreadMay finalizer = do
318318
_ <- poisonState oldState
319319
return $ mkKESState maxKESEvolutions newOCert newKey evolution startPeriod
320320
unset =
321-
modifyMVar_ varKESState $ poisonState
321+
modifyMVar_ varKESState poisonState
322322

323323
forM_ initialStateMay $ \(newOCert, newKey, evolution, startPeriod) ->
324324
set newOCert newKey evolution startPeriod

ouroboros-consensus-protocol/src/ouroboros-consensus-protocol/Ouroboros/Consensus/Protocol/Praos/Common.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,7 @@ instantiatePraosCredentials maxKESEvolutions _ (PraosCredentialsUnsound ocert sk
311311
instantiatePraosCredentials maxKESEvolutions tr (PraosCredentialsAgent _ path) = do
312312
HotKey.mkDynamicHotKey
313313
maxKESEvolutions
314-
( Just $ \handleKey handleDrop -> do
315-
runKESAgentClient tr path handleKey handleDrop
316-
)
314+
(Just $ runKESAgentClient tr path)
317315
(pure ())
318316

319317
-- | See 'PraosProtocolSupportsNode'

0 commit comments

Comments
 (0)