1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 11:35:47 +01:00

Subscribe ReconnectionTask to TickReconnect events

This lets phoenix wake up the reconnection task and reconnect to the
peer faster.
This commit is contained in:
dpad85 2020-10-14 16:33:48 +02:00
parent c6c18d6469
commit d414fa2dc4
No known key found for this signature in database
GPG key ID: 574C8C6A1673E987

View file

@ -46,6 +46,7 @@ import scala.util.Random
class ReconnectionTask(nodeParams: NodeParams, remoteNodeId: PublicKey) extends FSMDiagnosticActorLogging[ReconnectionTask.State, ReconnectionTask.Data] {
import ReconnectionTask._
context.system.eventStream.subscribe(self, TickReconnect.getClass)
startWith(IDLE, IdleData(Nothing))