mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-22 14:22:39 +01:00
Register now uses 'forward' instead of '!'
This commit is contained in:
parent
0283631fdd
commit
3454fb784a
1 changed files with 2 additions and 2 deletions
|
@ -43,13 +43,13 @@ class Register extends Actor with ActorLogging {
|
|||
|
||||
case Forward(channelId, msg) =>
|
||||
channels.get(channelId) match {
|
||||
case Some(channel) => channel ! msg
|
||||
case Some(channel) => channel forward msg
|
||||
case None => sender ! Failure(new RuntimeException(s"channel $channelId not found"))
|
||||
}
|
||||
|
||||
case ForwardShortId(shortChannelId, msg) =>
|
||||
shortIds.get(shortChannelId).flatMap(channels.get(_)) match {
|
||||
case Some(channel) => channel ! msg
|
||||
case Some(channel) => channel forward msg
|
||||
case None => sender ! Failure(new RuntimeException(s"channel $shortChannelId not found"))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue