Add serde default for `gossipsub::Config` (#463)

This commit is contained in:
Youngjoon Lee 2023-10-17 18:04:13 +09:00 committed by GitHub
parent 81c34036f7
commit b997011c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ pub struct SwarmConfig {
#[serde(with = "secret_key_serde", default = "secp256k1::SecretKey::generate")] #[serde(with = "secret_key_serde", default = "secp256k1::SecretKey::generate")]
pub node_key: secp256k1::SecretKey, pub node_key: secp256k1::SecretKey,
// Gossipsub config // Gossipsub config
#[serde(with = "GossipsubConfigDef")] #[serde(with = "GossipsubConfigDef", default = "gossipsub::Config::default")]
pub gossipsub_config: gossipsub::Config, pub gossipsub_config: gossipsub::Config,
} }