Fix bugs.

This commit is contained in:
undef-i 2023-03-19 06:23:21 +08:00
parent 576ae29d01
commit 8b8547755b
3 changed files with 2 additions and 5 deletions

2
Cargo.lock generated
View File

@ -368,7 +368,7 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
[[package]]
name = "bird-looking-glass-proxy"
version = "0.0.1"
version = "0.0.2"
dependencies = [
"actix-web",
"birdc",

View File

@ -1,6 +1,6 @@
[package]
name = "bird-looking-glass-proxy"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
[dependencies]

View File

@ -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 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>());
}