Skip to content

Commit 012126e

Browse files
f - make forward_htlcs only public in tests
1 parent 3afc4b9 commit 012126e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,10 @@ pub struct ChannelManager<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref,
722722
///
723723
/// Note that no consistency guarantees are made about the existence of a channel with the
724724
/// `short_channel_id` here, nor the `short_channel_id` in the `PendingHTLCInfo`!
725+
#[cfg(any(test, feature = "_test_utils"))]
725726
pub(super) forward_htlcs: Mutex<HashMap<u64, Vec<HTLCForwardInfo>>>,
727+
#[cfg(not(any(test, feature = "_test_utils")))]
728+
forward_htlcs: Mutex<HashMap<u64, Vec<HTLCForwardInfo>>>,
726729

727730
/// The set of outbound SCID aliases across all our channels, including unconfirmed channels
728731
/// and some closed channels which reached a usable state prior to being closed. This is used

0 commit comments

Comments
 (0)