Skip to content

Commit 0c82577

Browse files
committed
f refcell not mutex
1 parent 6f6813a commit 0c82577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ mod tests {
12901290
route.paths[0][0].fee_msat = 50_000_000;
12911291
route.paths[1][0].fee_msat = 50_000_001;
12921292
routes.push_back(Ok(route.clone()));
1293-
let route_res = ManualRouter(Mutex::new(routes));
1293+
let route_res = ManualRouter(RefCell::new(routes));
12941294

12951295
let event_handled = core::cell::RefCell::new(false);
12961296
let event_handler = |_: &_| { *event_handled.borrow_mut() = true; };

0 commit comments

Comments
 (0)