*: 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

@ -37,6 +37,7 @@ pub use self::protocol::{FloodsubMessage, FloodsubRpc};
pub use self::topic::Topic;
/// Configuration options for the Floodsub protocol.
#[derive(Debug, Clone)]
pub struct FloodsubConfig {
/// Peer id of the local node. Used for the source of the messages that we publish.
pub local_peer_id: PeerId,