Skip to content

Commit 758ab06

Browse files
committed
f clearer var name
1 parent 2246af0 commit 758ab06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/util/wakers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ impl Sleeper {
221221
{
222222
for notifier_mtx in self.notifiers.iter() {
223223
let cv_ref = Arc::clone(&cv);
224-
let notified_ref = Arc::clone(&notified_fut_mtx);
224+
let notified_fut_ref = Arc::clone(&notified_fut_mtx);
225225
let notifier_ref = Arc::clone(&notifier_mtx);
226226
let mut notifier = notifier_mtx.lock().unwrap();
227227
if notifier.complete {
228228
*notified_fut_mtx.lock().unwrap() = Some(notifier_ref);
229229
break;
230230
}
231231
notifier.callbacks.push((false, Box::new(move || {
232-
*notified_ref.lock().unwrap() = Some(Arc::clone(&notifier_ref));
232+
*notified_fut_ref.lock().unwrap() = Some(Arc::clone(&notifier_ref));
233233
cv_ref.notify_all();
234234
})));
235235
}

0 commit comments

Comments
 (0)