pub fn retrieve_identity(db_lock: Arc<Mutex<DB>>, id: [u8; 4]) -> Identity {
    let db = db_lock.lock().unwrap();
    let return_value = db.get(id).expect("failed to retrieve identity");
    let value = return_value.unwrap();
    Decode::decode(&mut &*value).unwrap()
}
/// Retrieve an identity from the local database by id array.
Retrieve an identity from the local database by id array.
Retrieve an identity from the local database by id array .
pub fn retrieve_identity(db_lock: Arc<Mutex<DB>>, id: [u8; 4]) -> Identity {
    let db = db_lock.lock().unwrap();
    let return_value = db.get(id).expect("failed to retrieve identity");
    let value = return_value.unwrap();
    Decode::decode(&mut &*value).unwrap()
}
pub fn retrieve_identity ( db_lock : Arc < Mutex < DB > > , id : [ u8 ; 4 ] ) -> Identity { let db = db_lock . lock ( ) . unwrap ( ) ; let return_value = db . get ( id ) . expect ( " " ) ; let value = return_value . unwrap ( ) ; Decode :: decode ( & mut & * value ) . unwrap ( ) }
Retrieve an identity from the local database by id array.
Retrieve an identity from the local database by id array .
db_lock
Arc<Mutex<DB>>
id
[u8; 4]
db_lock
Arc<Mutex<DB>>
id
[u8; 4]