Drop unused "peer gone" handling in get_peer_for_forwarding!()
authorMatt Corallo <git@bluematt.me>
Thu, 10 Jun 2021 16:26:33 +0000 (16:26 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 10 Jun 2021 16:26:33 +0000 (16:26 +0000)
commit5bf4cad92a97705dafe845ce998c7cdc84e8520f
treeb6f233fe8c204562b484942f535d19cec7755b60
parenta8038a8234b70bc261f633a9e2b40adebebcd8d4
Drop unused "peer gone" handling in get_peer_for_forwarding!()

We can never assume that messages were reliably delivered whether
we placed them in the socket or not, so there isn't a lot of use in
explicitly handling the case that a peer was not connected when we
went to send it a message.

Two TODOs are left for the generation of a `FundingAbandoned` (or
similar) event, though it ultimately belongs in `ChannelManager`.
lightning/src/ln/peer_handler.rs