remove mutex and use tokio::sync::watch for cert service
This commit is contained in:
parent
d0af82c54c
commit
19b9f2a609
5 changed files with 88 additions and 95 deletions
|
|
@ -7,7 +7,6 @@ use crate::{
|
|||
proxy::{Backend, Backends, ReverseProxy, Upstream, UpstreamOption},
|
||||
};
|
||||
use clap::Arg;
|
||||
use parking_lot::Mutex;
|
||||
use rustc_hash::{FxHashMap as HashMap, FxHashSet as HashSet};
|
||||
use std::net::SocketAddr;
|
||||
|
||||
|
|
@ -132,7 +131,6 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut Backends) -> Result<()>
|
|||
tls_cert_path,
|
||||
tls_cert_key_path,
|
||||
https_redirection,
|
||||
server_config: Mutex::new(None),
|
||||
},
|
||||
);
|
||||
info!("Registering application: {} ({})", app_name, server_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue