Skip to content

Commit

Permalink
keep-alive: pass ControlMessageSTM to keep alive application
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Nov 21, 2022
1 parent 36360ea commit 341b7d8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -631,7 +631,7 @@ mkApps kernel Tracers {..} mkCodecs ByteLimits {..} genChainSyncTimeout ReportPe
-> remotePeer
-> Channel m bKA
-> m (NodeToNodeInitiatorResult, Maybe bKA)
aKeepAliveClient version _controlMessageSTM them channel = do
aKeepAliveClient version controlMessageSTM them channel = do
labelThisThread "KeepAliveClient"
let kacApp = \dqCtx ->
runPeerWithLimits
Expand All @@ -641,7 +641,7 @@ mkApps kernel Tracers {..} mkCodecs ByteLimits {..} genChainSyncTimeout ReportPe
timeLimitsKeepAlive
channel
$ keepAliveClientPeer
$ hKeepAliveClient version (continueForever (Proxy :: Proxy m)) them dqCtx
$ hKeepAliveClient version controlMessageSTM them dqCtx
(KeepAliveInterval 10)

((), trailing) <- bracketKeepAliveClient (getFetchClientRegistry kernel) them kacApp
Expand Down

0 comments on commit 341b7d8

Please sign in to comment.