]> git.bitcoin.ninja Git - rust-lightning/commit
Make fail_htlc_backwards_internal borrow parameters
authorTobin C. Harding <me@tobin.cc>
Tue, 29 Nov 2022 00:59:59 +0000 (11:59 +1100)
committerTobin C. Harding <me@tobin.cc>
Thu, 1 Dec 2022 02:32:34 +0000 (13:32 +1100)
commitc21378fa479c9f4cb7e06f400baf861625bea475
treea965f2a30fa2b2771814c2d8e9036ec08d3b75d4
parent555cb4024fde76ed2bea0466289ae45c8904b395
Make fail_htlc_backwards_internal borrow parameters

Currently `fail_htlc_backwards_internal` takes ownership of its source
and reason parameters however they are not consumed so we can borrow them.

Includes refactoring to use local variables before the function call.
lightning/src/ln/channelmanager.rs