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:
parent
c6c18d6469
commit
d414fa2dc4
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue