protocols: Derive debug for MemoryStoreConfig and IdentifyConfig (#2029)

This commit is contained in:
David Craven
2021-04-12 13:30:30 +02:00
committed by GitHub
parent b1b6f2bafe
commit 687145d784
2 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ enum Reply {
/// Configuration for the [`Identify`] [`NetworkBehaviour`].
#[non_exhaustive]
#[derive(Debug)]
pub struct IdentifyConfig {
/// Application-specific version of the protocol family used by the peer,
/// e.g. `ipfs/1.0.0` or `polkadot/1.0.0`.

View File

@ -44,6 +44,7 @@ pub struct MemoryStore {
}
/// Configuration for a `MemoryStore`.
#[derive(Debug)]
pub struct MemoryStoreConfig {
/// The maximum number of records.
pub max_records: usize,