*: Derive Debug and Clone(#2495)

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Nazar Mokrynskyi
2022-02-16 17:16:54 +02:00
committed by GitHub
parent 9f1114d8b9
commit 65cc8994a6
16 changed files with 44 additions and 9 deletions

View File

@ -44,7 +44,7 @@ use unsigned_varint::codec;
pub(crate) const SIGNING_PREFIX: &[u8] = b"libp2p-pubsub:";
/// Implementation of [`InboundUpgrade`] and [`OutboundUpgrade`] for the Gossipsub protocol.
#[derive(Clone)]
#[derive(Debug, Clone)]
pub struct ProtocolConfig {
/// The Gossipsub protocol id to listen on.
protocol_ids: Vec<ProtocolId>,