Skip to content

Commit

Permalink
Ignore monitoring of cold hot cons beeing demoted
Browse files Browse the repository at this point in the history
Let the con monitor ignore currently cold connections that where hot and
is in the process of beeing demoted. This means will leave it up to the
demotion job to detect the error and fail.
  • Loading branch information
karknu committed Jan 26, 2022
1 parent 5e9f4d5 commit 6fe1567
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -210,7 +210,8 @@ connections PeerSelectionActions{

-- a hot -> cold transition has occurred if it is now cold, and it was hot
asyncDemotion peeraddr PeerCold
| peeraddr `Set.member` activePeers = Just PeerCold
| peeraddr `Set.member` activePeers
, peeraddr `Set.notMember` inProgressDemoteHot = Just PeerCold

asyncDemotion _ _ = Nothing

Expand Down

0 comments on commit 6fe1567

Please sign in to comment.