mirror of
https://github.com/sadoyan/aralez.git
synced 2026-06-24 00:02:42 +08:00
Early stage Consul http api support
This commit is contained in:
@@ -25,7 +25,7 @@ pub async fn run_server(bindaddress: String, mut toreturn: Sender<(UpstreamsDash
|
||||
|
||||
match serverlist {
|
||||
Some(serverlist) => {
|
||||
let _ = tr.send(serverlist).await.unwrap();
|
||||
let _ = tr.send((serverlist.0, serverlist.1)).await.unwrap();
|
||||
Response::builder().status(StatusCode::CREATED).body(Body::from("Config, conf file, updated!\n")).unwrap()
|
||||
}
|
||||
None => Response::builder()
|
||||
|
||||
Reference in New Issue
Block a user