]> git.bitcoin.ninja Git - rust-lightning/commit
Stop taking &self in outbound_payments' create_inbound_payment
authorValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 15:39:52 +0000 (11:39 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:14:03 +0000 (16:14 -0400)
commit639446ad63bed1d70016a2fe116dce17a718213f
tree4ad0b1348601f37d463beef2169fa9f5a8487ee2
parent2ff6524da40cd82fc259140e49d7bd51f94868c0
Stop taking &self in outbound_payments' create_inbound_payment

The method doesn't actually use its &self parameter, and this makes it more
obvious that we aren't going to deadlock by calling the method if the
outbound_payments lock is already acquired.
lightning/src/ln/outbound_payment.rs