Make quic field of P2PManager private (#2234)

Make P2PManager.quic private
This commit is contained in:
Julian Braha 2024-03-24 03:45:12 +00:00 committed by GitHub
parent d52b720a12
commit ff4d0cc519
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,8 +40,7 @@ use super::{P2PEvents, PeerMetadata};
pub struct P2PManager {
pub(crate) p2p: Arc<P2P>,
mdns: Mutex<Option<Mdns>>,
// TODO: Make private
pub quic: QuicTransport,
quic: QuicTransport,
// The `libp2p::PeerId`. This is for debugging only, use `RemoteIdentity` instead.
lp2p_peer_id: Libp2pPeerId,
pub(crate) events: P2PEvents,