Skip to content

Commit ba0793f

Browse files
committed
f comment
1 parent 4d0da79 commit ba0793f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lightning/src/util/events.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,12 @@ impl MaybeReadable for Event {
10241024
prev_channel_id,
10251025
failed_next_destination,
10261026
}))
1027-
} else { Ok(None) }
1027+
} else {
1028+
// If we fail to read a `failed_next_destination` assume it's because
1029+
// `MaybeReadable::read` returned `Ok(None)`, though it's also possible we
1030+
// were simply missing the field.
1031+
Ok(None)
1032+
}
10281033
};
10291034
f()
10301035
},

0 commit comments

Comments
 (0)