Skip to content

Commit

Permalink
Merge pull request #3605 from vincenzopalazzo/macros/fix-warnings
Browse files Browse the repository at this point in the history
[RFC] remove the cfg test that it is not needed in a error code path
  • Loading branch information
TheBlueMatt authored Feb 16, 2025
2 parents bce5db7 + 0a5a7d9 commit 2d2c542
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8310,7 +8310,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
), ChannelId([0; 32])));
}

#[cfg(not(test))]
if msg.data.len() > MAX_PEER_STORAGE_SIZE {
log_debug!(logger, "Sending warning to peer and ignoring peer storage request from {} as its over 1KiB", log_pubkey!(counterparty_node_id));

Expand Down

0 comments on commit 2d2c542

Please sign in to comment.