Skip to content

Commit 2a5119a

Browse files
committed
f use util
1 parent d8f5dde commit 2a5119a

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
@@ -489,7 +489,7 @@ where
489489
}
490490
},
491491
Event::PaymentFailed { payment_hash, .. } => {
492-
self.payment_cache.lock().unwrap().remove(payment_hash);
492+
self.remove_cached_payment(&payment_hash);
493493
},
494494
Event::PaymentPathSuccessful { path, .. } => {
495495
let path = path.iter().collect::<Vec<_>>();

0 commit comments

Comments
 (0)