mirror of https://github.com/voidlizard/hbs2
ping error fixed
This commit is contained in:
parent
a447547959
commit
f7fb435026
|
@ -104,7 +104,7 @@ pexLoop = do
|
||||||
|
|
||||||
for_ peers sendPeerExchangeGet
|
for_ peers sendPeerExchangeGet
|
||||||
|
|
||||||
pause @'Seconds 60 -- FIXME: defaults
|
pause @'Seconds 180 -- FIXME: defaults
|
||||||
|
|
||||||
peerPingLoop :: forall e m . ( HasPeerLocator e m
|
peerPingLoop :: forall e m . ( HasPeerLocator e m
|
||||||
, HasPeer e
|
, HasPeer e
|
||||||
|
|
|
@ -444,11 +444,12 @@ runPeer opts = Exception.handle myException $ do
|
||||||
|
|
||||||
here <- find @e (KnownPeerKey p) id <&> isJust
|
here <- find @e (KnownPeerKey p) id <&> isJust
|
||||||
|
|
||||||
|
pfails <- fetch True npi (PeerInfoKey p) (view peerPingFailed)
|
||||||
|
-- pdownfails <- fetch True npi (PeerInfoKey p) (view peerDownloadFail)
|
||||||
|
|
||||||
unless here do
|
unless here do
|
||||||
pfails <- fetch True npi (PeerInfoKey p) (view peerPingFailed)
|
|
||||||
pdownfails <- fetch True npi (PeerInfoKey p) (view peerDownloadFail)
|
|
||||||
liftIO $ atomically $ writeTVar pfails 0
|
liftIO $ atomically $ writeTVar pfails 0
|
||||||
liftIO $ atomically $ writeTVar pdownfails 0
|
-- liftIO $ atomically $ writeTVar pdownfails 0
|
||||||
|
|
||||||
debug $ "Got authorized peer!" <+> pretty p
|
debug $ "Got authorized peer!" <+> pretty p
|
||||||
<+> pretty (AsBase58 (view peerSignKey d))
|
<+> pretty (AsBase58 (view peerSignKey d))
|
||||||
|
|
Loading…
Reference in New Issue