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:
parent
101bcd7c50
commit
92e2d21eab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue