Skip to content

Commit

Permalink
impl Clone for MemoryKeystore (#2131)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhmelody authored Nov 2, 2023
1 parent 10857d0 commit 29b4bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/primitives/keystore/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use parking_lot::RwLock;
use std::{collections::HashMap, sync::Arc};

/// A keystore implementation usable in tests.
#[derive(Default)]
#[derive(Default, Clone)]
pub struct MemoryKeystore {
/// `KeyTypeId` maps to public keys and public keys map to private keys.
keys: Arc<RwLock<HashMap<KeyTypeId, HashMap<Vec<u8>, String>>>>,
Expand Down

0 comments on commit 29b4bd4

Please sign in to comment.