Fix bugs.
This commit is contained in:
parent
576ae29d01
commit
b66bbbdf2d
|
@ -368,7 +368,7 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bird-looking-glass-proxy"
|
name = "bird-looking-glass-proxy"
|
||||||
version = "0.0.1"
|
version = "0.0.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"birdc",
|
"birdc",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bird-looking-glass-proxy"
|
name = "bird-looking-glass-proxy"
|
||||||
version = "0.0.1"
|
version = "0.0.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
@ -16,9 +16,6 @@ pub async fn bird(_param: web::Query<Param>, _req: HttpRequest, mode: i8) -> Res
|
||||||
});
|
});
|
||||||
let mut connection = block_on(client.connect())?;
|
let mut connection = block_on(client.connect())?;
|
||||||
let messages = block_on(connection.send_request(&_param.q))?;
|
let messages = block_on(connection.send_request(&_param.q))?;
|
||||||
for message in &messages {
|
|
||||||
println!("received message: {:?}", message);
|
|
||||||
}
|
|
||||||
return Ok(messages.iter().map(|message |format!("{:?}",message)).collect::<String>());
|
return Ok(messages.iter().map(|message |format!("{:?}",message)).collect::<String>());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue