Skip to content

Commit

Permalink
Derive debug for MemoryStoreConfig and IdentifyConfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Apr 1, 2021
1 parent bb206bc commit 60760fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions protocols/identify/src/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
1 change: 1 addition & 0 deletions protocols/kad/src/record/store/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60760fa

Please sign in to comment.