Add regen-key ability if can't read key

This commit is contained in:
asonix
2020-04-21 17:47:34 -05:00
parent b8336b441c
commit dea8c60042
4 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ impl State {
let f3 = db.hydrate_listeners();
let f4 = async move {
if let Some(key) = db.hydrate_private_key().await? {
if let Ok(Some(key)) = db.hydrate_private_key().await {
Ok(key)
} else {
info!("Generating new keys");