Merge pull request #3605 from vincenzopalazzo/macros/fix-warnings

[RFC] remove the cfg test that it is not needed in a error code path
This commit is contained in:
Matt Corallo 2025-02-16 16:32:28 +00:00 committed by GitHub
commit 2d2c542a90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));