mirror of
https://github.com/sadoyan/aralez.git
synced 2026-05-30 03:44:06 +08:00
parceyaml
This commit is contained in:
@@ -31,7 +31,7 @@ pub async fn load_configuration(d: &str, kind: &str) -> (Option<Configuration>,
|
|||||||
data = content;
|
data = content;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
last_error = Some(e);
|
last_error = Some(e);
|
||||||
}
|
}
|
||||||
@@ -95,8 +95,7 @@ pub async fn load_configuration(d: &str, kind: &str) -> (Option<Configuration>,
|
|||||||
|
|
||||||
info!("Reading upstreams from {}", d);
|
info!("Reading upstreams from {}", d);
|
||||||
data
|
data
|
||||||
|
}
|
||||||
},
|
|
||||||
"content" => {
|
"content" => {
|
||||||
info!("Reading upstreams from API post body");
|
info!("Reading upstreams from API post body");
|
||||||
d.to_string()
|
d.to_string()
|
||||||
|
|||||||
Reference in New Issue
Block a user