]> git.bitcoin.ninja Git - rust-lightning/commit
Wipe `Notifier` `FutureState` when returning from a waiter.
authorMatt Corallo <git@bluematt.me>
Tue, 15 Nov 2022 00:24:25 +0000 (00:24 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 16 Nov 2022 00:21:43 +0000 (00:21 +0000)
commit5f053e43af4971d614574bb00c41a4e75fe8dbfd
tree2fea34c410264b91e7ac8fd82c4598f40b847ddc
parent7527e4b7df674fc2f5442514bb7b1d2294e59ce8
Wipe `Notifier` `FutureState` when returning from a waiter.

When we return from one of the wait functions in `Notifier`, we
should also ensure that the next `Future` doesn't start in the
`complete` state, as we have already notified the user, as far as
we're concerned.

This is technically a regression from the previous commit, but as
it is a logically separate change it is in its own commit.
lightning/src/util/wakers.rs