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

Register now uses 'forward' instead of '!'

This commit is contained in:
pm47 2017-03-09 14:06:46 +01:00
parent 0283631fdd
commit 3454fb784a

View file

@ -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"))
}
}