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>
Mon, 21 Jun 2021 16:02:18 +0000 (16:02 +0000)
commitf4323d98b87cb1a6458c788dfea540d51c0c4130
treef16d4caeb34414cded69ebc3a0f8206140df1e3a
parent94528f00f57a9ce19fe94d0d4b938cafa3bbe697
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