Skip to content

Commit e48025c

Browse files
committed
f expect for comment
1 parent e7d7db7 commit e48025c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8324,7 +8324,8 @@ where
83248324
let peer_state = &mut *peer_state_lock;
83258325
for (_, chan) in peer_state.channel_by_id.iter() {
83268326
if let Some(funding_txo) = chan.context.get_funding_txo() {
8327-
let monitor = args.channel_monitors.get(&funding_txo).unwrap();
8327+
let monitor = args.channel_monitors.get(&funding_txo)
8328+
.expect("We already checked for monitor presence when loading channels");
83288329
let mut max_in_flight_update_id = monitor.get_latest_update_id();
83298330
if let Some(in_flight_upds) = &mut in_flight_monitor_updates {
83308331
if let Some(mut chan_in_flight_upds) = in_flight_upds.remove(&(*counterparty_id, funding_txo)) {

0 commit comments

Comments
 (0)