mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
Streamline access/working with configured params and configured addr (#3219)
This commit is contained in:
@@ -198,10 +198,7 @@ impl DcSecretKey for SignedSecretKey {
|
||||
}
|
||||
|
||||
async fn generate_keypair(context: &Context) -> Result<KeyPair> {
|
||||
let addr = context
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.await?
|
||||
.context("no address configured")?;
|
||||
let addr = context.get_configured_addr().await?;
|
||||
let addr = EmailAddress::new(&addr)?;
|
||||
let _guard = context.generating_key_mutex.lock().await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user