Skip to content

Commit

Permalink
p2p-governor: fix acounting of established peers
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Oct 19, 2020
1 parent 0f708e3 commit 93be0c9
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -106,14 +106,16 @@ connections PeerSelectionActions{peerStateActions = PeerStateActions {monitorPee
decisionJobs = [],
decisionState = st {
activePeers = activePeers
Set.\\ Map.keysSet demotedToWarm,
Set.\\ Map.keysSet demotions,
establishedPeers = establishedPeers
Map.\\ demotedToCold,

-- Note that we do not use establishedStatus' which
-- has the synchronous ones that are supposed to be
-- handled elsewhere. We just update the async ones:
establishedStatus = establishedStatus <> demotions
establishedStatus = demotedToWarm
<> establishedStatus
Map.\\ demotedToCold
}
}
where
Expand Down

0 comments on commit 93be0c9

Please sign in to comment.