chore: fix warn
This commit is contained in:
@@ -8,7 +8,7 @@ mod x509;
|
||||
// mod simple_thread_pool;
|
||||
|
||||
use rust_util::XResult;
|
||||
use acme_lib::{DirectoryUrl, Directory};
|
||||
use acme_lib::Directory;
|
||||
use acme_lib::{create_p384_key, create_p256_key, create_rsa_key};
|
||||
use acme_lib::persist::FilePersist;
|
||||
use clap::{App, Arg};
|
||||
@@ -23,7 +23,7 @@ use async_std::channel;
|
||||
use async_std::channel::Sender;
|
||||
use config::AcmeAlgo;
|
||||
use config::AcmeMode;
|
||||
use crate::config::{CertConfig, CERT_NAME, KEY_NAME};
|
||||
use crate::config::{CertConfig, CERT_NAME, KEY_NAME, load_acme_config};
|
||||
|
||||
const NAME: &str = env!("CARGO_PKG_NAME");
|
||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
@@ -137,6 +137,10 @@ async fn main() -> tide::Result<()> {
|
||||
|
||||
// TODO ......
|
||||
let config = matches.value_of("config");
|
||||
let _acme_config = load_acme_config(config, true).unwrap_or_else(|e| {
|
||||
failure!("Load acme config failed: {}", e);
|
||||
exit(1);
|
||||
});
|
||||
|
||||
let cert_config = matches.value_of("cert-config");
|
||||
match cert_config {
|
||||
|
||||
Reference in New Issue
Block a user