Add serde default for `gossipsub::Config` (#463)
This commit is contained in:
parent
81c34036f7
commit
b997011c6a
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue