Skip to content

Commit

Permalink
p2p-governor: fixed setConnectTime
Browse files Browse the repository at this point in the history
'setConnectTime' is supposed to update 'availableToConnect' and
`nextConnectTimes' rather than 'availableForGossip' and
'nextGossipTimes'.
  • Loading branch information
coot committed Oct 19, 2020
1 parent 3714021 commit 6dfb17c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -364,11 +364,11 @@ setConnectTime peeraddrs time
} =
assert (all (`Map.member` allPeers) peeraddrs) $
let knownPeers' = knownPeers {
availableForGossip =
availableToConnect =
availableToConnect
Set.\\ peeraddrs,

nextGossipTimes =
nextConnectTimes =
List.foldl' (\psq peeraddr -> PSQ.insert peeraddr time () psq)
nextConnectTimes
peeraddrs
Expand Down

0 comments on commit 6dfb17c

Please sign in to comment.