Commit 09ca6319 authored by nanahira's avatar nanahira

fix again

parent e09df344
Pipeline #37144 passed with stages
in 27 seconds
......@@ -125,8 +125,8 @@ impl<'a> Router<'a> {
Self::run_up_script(&config)?;
let mut endpoints_set = HashSet::new();
if let Some(addr) = *endpoint.read().unwrap() {
endpoints_set.insert(addr);
if let Some(ref addr) = *endpoint.read().unwrap() {
endpoints_set.insert(*addr);
}
let endpoints = Arc::new(RwLock::new(endpoints_set));
let last_seen = Arc::new(RwLock::new(Instant::now()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment