Skip to content

Commit 2bf621b

Browse files
committed
Fix MSRV compatibility
8a39057 broke MSRV for 0.1 which is still 1.63. We fix it here.
1 parent b6f3ad7 commit 2bf621b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightning/src/chain/chainmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ where C::Target: chain::Filter,
337337
};
338338

339339
let has_pending_claims = monitor_state.monitor.has_pending_claims();
340-
if has_pending_claims || get_partition_key(funding_outpoint).is_some_and(|key| key % partition_factor == 0) {
340+
if has_pending_claims || get_partition_key(funding_outpoint).map(|key| key % partition_factor == 0).unwrap_or(false) {
341341
log_trace!(logger, "Syncing Channel Monitor for channel {}", log_funding_info!(monitor));
342342
// Even though we don't track monitor updates from chain-sync as pending, we still want
343343
// updates per-channel to be well-ordered so that users don't see a

0 commit comments

Comments
 (0)