mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
implement existing certificate selection
This commit is contained in:
parent
10cf4fc6a1
commit
728a9c06d5
9 changed files with 189 additions and 41 deletions
|
|
@ -18,6 +18,7 @@ pub struct Gemini {
|
|||
pub auth: Rc<Auth>,
|
||||
pub database: Rc<Database>,
|
||||
pub memory: Rc<Memory>,
|
||||
profile_identity_id: Rc<i64>,
|
||||
}
|
||||
|
||||
impl Gemini {
|
||||
|
|
@ -33,7 +34,7 @@ impl Gemini {
|
|||
Ok(auth) => Rc::new(auth),
|
||||
Err(_) => return Err(Error::AuthInit), // @TODO
|
||||
};
|
||||
let database = Rc::new(Database::new(connection, profile_identity_id));
|
||||
let database = Rc::new(Database::new(connection, profile_identity_id.clone()));
|
||||
let memory = Rc::new(Memory::new());
|
||||
|
||||
// Init `Self`
|
||||
|
|
@ -41,6 +42,7 @@ impl Gemini {
|
|||
auth,
|
||||
database,
|
||||
memory,
|
||||
profile_identity_id,
|
||||
};
|
||||
|
||||
// Build initial index
|
||||
|
|
@ -69,8 +71,6 @@ impl Gemini {
|
|||
};
|
||||
Ok(()) // @TODO
|
||||
}
|
||||
|
||||
// @TODO create new identity API
|
||||
}
|
||||
|
||||
// Tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue