Fix bugs.
This commit is contained in:
parent
576ae29d01
commit
8b8547755b
|
@ -368,7 +368,7 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
|
|||
|
||||
[[package]]
|
||||
name = "bird-looking-glass-proxy"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
dependencies = [
|
||||
"actix-web",
|
||||
"birdc",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "bird-looking-glass-proxy"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
edition = "2021"
|
||||
|
||||
[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 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>());
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue