Skip to content

Commit

Permalink
Fixed some rebasing artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed May 12, 2021
1 parent f47d930 commit 7ad74e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Ouroboros.Network.PeerSelection.Governor (
sanePeerSelectionTargets,
establishedPeersStatus,
PeerSelectionState(..),
PeerSelectionCounters(..)
PeerSelectionCounters(..),
nullPeerSelectionTargets,
emptyPeerSelectionState,
) where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ traceNum TraceDemoteHotFailed{} = 21
traceNum TraceDemoteHotDone{} = 22
traceNum TraceDemoteAsynchronous{} = 23
traceNum TraceGovernorWakeup{} = 24
traceNum TraceChurnWait{} = 25

allTraceNames :: Map Int String
allTraceNames =
Expand Down Expand Up @@ -516,6 +517,7 @@ allTraceNames =
, (22, "TraceDemoteHotDone")
, (23, "TraceDemoteAsynchronous")
, (24, "TraceGovernorWakeup")
, (25, "TraceChurnWait")
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ mockPeerSelectionActions' tracer
monitorPeerConnection (PeerConn _peeraddr conn) = readTVar conn


snapshotPeersStatus :: MonadSTMTx stm
=> TVar_ stm (Map PeerAddr (TVar_ stm PeerStatus))
snapshotPeersStatus :: MonadSTMTx stm tvar tmvar tqueue tbqueue
=> tvar (Map PeerAddr (tvar PeerStatus))
-> stm (Map PeerAddr PeerStatus)
snapshotPeersStatus connsVar = do
conns <- readTVar connsVar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ arbitraryPickScript pickSome =
arbitraryScriptOf sz (arbitraryPickMembers pickSome)

interpretPickScript :: (MonadSTMTx stm tvar tmvar tqueue tbqueue, Ord peeraddr)
=> tvar PickScript
=> tvar (PickScript peeraddr)
-> Set peeraddr
-> Int
-> stm (Set peeraddr)
Expand Down

0 comments on commit 7ad74e3

Please sign in to comment.