Skip to content

Commit eb876df

Browse files
f - Restrict short_to_chan_info access to lightning crate tests only
1 parent e47fc06 commit eb876df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,9 @@ pub struct ChannelManager<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref,
752752
/// channel with the `channel_id` in our other maps.
753753
///
754754
/// Locked *after* `channel_state`.
755-
#[cfg(any(test, feature = "_test_utils"))]
755+
#[cfg(test)]
756756
pub(super) short_to_chan_info: FairRwLock<HashMap<u64, (PublicKey, [u8; 32])>>,
757-
#[cfg(not(any(test, feature = "_test_utils")))]
757+
#[cfg(not(test))]
758758
short_to_chan_info: FairRwLock<HashMap<u64, (PublicKey, [u8; 32])>>,
759759

760760
our_network_key: SecretKey,

0 commit comments

Comments
 (0)