1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-23 22:46:44 +01:00

Make htlc-reaper a top-level actor (#1013)

The way we handle requests to `Switchboard` assume that all children are `Peer`s. This led the `peer` API request to timeout.
This commit is contained in:
Pierre-Marie Padiou 2019-05-21 17:36:29 +02:00 committed by GitHub
parent 101bcd7c50
commit 92e2d21eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ class Switchboard(nodeParams: NodeParams, authenticator: ActorRef, watcher: Acto
checkBrokenHtlcsLink(channels, nodeParams.privateKey) match {
case Nil => ()
case brokenHtlcs =>
val brokenHtlcKiller = context.actorOf(Props[HtlcReaper], name = "htlc-reaper")
val brokenHtlcKiller = context.system.actorOf(Props[HtlcReaper], name = "htlc-reaper")
brokenHtlcKiller ! brokenHtlcs
}