Actually hold the total_consistency_lock instead of take-and-drop 2020-10-fix-big-lock
authorMatt Corallo <git@bluematt.me>
Fri, 2 Oct 2020 16:51:25 +0000 (12:51 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 2 Oct 2020 16:51:25 +0000 (12:51 -0400)
commitddebf36eaeef90684eb48ddab8db924b46ee74ac
treeb61ba397a23d2d9139e549f08c35b6d802dde93d
parente48f8e3f33c7b7feadebb05f9241300f4e3b792b
Actually hold the total_consistency_lock instead of take-and-drop

It was noticed (via clippy) by @casey that we were taking and then
immediately dropping the total_consistency_lock because `let _ =`
doesn't actually bind the response to anything. This appears to be
a consequence of wanting `if let Some(_) =` to not hold a ref to
the contained value at all, but is relatively surprising to me.
lightning/src/ln/channelmanager.rs