[WIP] MTP migration
This commit is contained in:
parent
f0011a67cf
commit
607bf337fe
5 changed files with 210 additions and 118 deletions
|
|
@ -26,12 +26,8 @@ fn load_keyring() -> Keyring {
|
|||
.expect("Invalid KEYRING env var: not valid base64");
|
||||
Keyring::from_bytes(&bytes).expect("Invalid KEYRING env var: failed to deserialize")
|
||||
}
|
||||
pub fn get_keyring() -> &'static Keyring {
|
||||
static KEYRING: Lazy<Keyring> = Lazy::new(load_keyring);
|
||||
&KEYRING
|
||||
}
|
||||
pub fn get_public_key_bundle() -> PublicKeyBundle {
|
||||
get_keyring().public_key_bundle()
|
||||
load_keyring().public_key_bundle()
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
|
|
|||
Loading…
Reference in a new issue