@@ -27,7 +27,6 @@ module Ouroboros.Consensus.NodeKernel (
2727 ) where
2828
2929
30- import qualified Control.Concurrent.Class.MonadMVar.Strict as StrictSTM
3130import qualified Control.Concurrent.Class.MonadSTM as LazySTM
3231import qualified Control.Concurrent.Class.MonadSTM.Strict as StrictSTM
3332import Control.DeepSeq (force )
@@ -43,7 +42,6 @@ import Data.Functor ((<&>))
4342import Data.Hashable (Hashable )
4443import Data.List.NonEmpty (NonEmpty )
4544import Data.Map.Strict (Map )
46- import qualified Data.Map.Strict as Map
4745import Data.Maybe (isJust , mapMaybe )
4846import Data.Proxy
4947import qualified Data.Text as Text
@@ -114,8 +112,8 @@ import Ouroboros.Network.TxSubmission.Inbound
114112 (TxSubmissionMempoolWriter )
115113import qualified Ouroboros.Network.TxSubmission.Inbound as Inbound
116114import Ouroboros.Network.TxSubmission.Inbound.Registry
117- (SharedTxStateVar , TxChannels ( .. ), TxChannelsVar ,
118- decisionLogicThread , newSharedTxStateVar )
115+ (SharedTxStateVar , TxChannelsVar ,
116+ decisionLogicThread , newSharedTxStateVar , newTxChannelsVar )
119117import Ouroboros.Network.TxSubmission.Mempool.Reader
120118 (TxSubmissionMempoolReader )
121119import qualified Ouroboros.Network.TxSubmission.Mempool.Reader as MempoolReader
@@ -294,7 +292,7 @@ initNodeKernel args@NodeKernelArgs { registry, cfg, tracers
294292 ps_POLICY_PEER_SHARE_STICKY_TIME
295293 ps_POLICY_PEER_SHARE_MAX_PEERS
296294
297- txChannelsVar <- StrictSTM. newMVar ( TxChannels Map. empty)
295+ txChannelsVar <- newTxChannelsVar
298296 sharedTxStateVar <- newSharedTxStateVar
299297
300298 case gnkaGetLoEFragment genesisArgs of
0 commit comments