Skip to content

Commit 2d2c542

Browse files
authored
Merge pull request #3605 from vincenzopalazzo/macros/fix-warnings
[RFC] remove the cfg test that it is not needed in a error code path
2 parents bce5db7 + 0a5a7d9 commit 2d2c542

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8310,7 +8310,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
83108310
), ChannelId([0; 32])));
83118311
}
83128312

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

0 commit comments

Comments
 (0)