]> git.bitcoin.ninja Git - rust-lightning/commit
Make PersistenceNotifierGuard::optionally_notify take a ChanMan ref
authorMatt Corallo <git@bluematt.me>
Mon, 11 Sep 2023 03:10:36 +0000 (03:10 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 11 Sep 2023 03:10:36 +0000 (03:10 +0000)
commitc2aee577701e85495516b45c4f6dfc2f8f4b0e24
tree07eecec46eb37d004d82806b480670485a804b56
parent9228f902e48eab79d65e55a087a8039e4cab1fe4
Make PersistenceNotifierGuard::optionally_notify take a ChanMan ref

Long ago, for reasons lost to the ages, the
`PersistenceNotifierGuard::optionally_notify` constructor didn't
take a `ChannelManager` reference, but rather explicit references
to the fields of it that it needs.

This is cumbersome and useless, so we fix it here.
lightning/src/ln/channelmanager.rs