We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2246af0 commit 758ab06Copy full SHA for 758ab06
lightning/src/util/wakers.rs
@@ -221,15 +221,15 @@ impl Sleeper {
221
{
222
for notifier_mtx in self.notifiers.iter() {
223
let cv_ref = Arc::clone(&cv);
224
- let notified_ref = Arc::clone(¬ified_fut_mtx);
+ let notified_fut_ref = Arc::clone(¬ified_fut_mtx);
225
let notifier_ref = Arc::clone(¬ifier_mtx);
226
let mut notifier = notifier_mtx.lock().unwrap();
227
if notifier.complete {
228
*notified_fut_mtx.lock().unwrap() = Some(notifier_ref);
229
break;
230
}
231
notifier.callbacks.push((false, Box::new(move || {
232
- *notified_ref.lock().unwrap() = Some(Arc::clone(¬ifier_ref));
+ *notified_fut_ref.lock().unwrap() = Some(Arc::clone(¬ifier_ref));
233
cv_ref.notify_all();
234
})));
235
0 commit comments