Skip to content

Commit dfb9aa6

Browse files
committed
No need to make channels pub in tests anymore
1 parent f92934d commit dfb9aa6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lightning/src/routing/gossip.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ pub struct NetworkGraph<L: Deref> where L::Target: Logger {
128128
genesis_hash: BlockHash,
129129
logger: L,
130130
// Lock order: channels -> nodes
131-
#[cfg(test)]
132-
pub(crate) channels: RwLock<BTreeMap<u64, ChannelInfo>>,
133-
#[cfg(not(test))]
134131
channels: RwLock<BTreeMap<u64, ChannelInfo>>,
135132
nodes: RwLock<BTreeMap<NodeId, NodeInfo>>,
136133
}

0 commit comments

Comments
 (0)