updated ipblc with zmq error printing on send
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul 2022-07-10 18:56:44 +02:00
parent aa10a1ca87
commit 6d5d10a66e

View File

@ -25,8 +25,23 @@ impl std::fmt::Debug for FileEvent {
async fn send_to_ipbl_zmq(socket: &zmq::Socket, ip: &IpData) { async fn send_to_ipbl_zmq(socket: &zmq::Socket, ip: &IpData) {
let msg = format!("{value}", value = serde_json::to_string(&ip).unwrap()); let msg = format!("{value}", value = serde_json::to_string(&ip).unwrap());
socket.send(&msg, 0).unwrap(); match socket.send(&msg, 0) {
socket.recv_string(0).unwrap().unwrap(); Ok(_) => {}
Err(e) => {
println!("{e:?}")
}
};
match socket.recv_string(0) {
Ok(o) => match o {
Ok(_) => {}
Err(ee) => {
println!("{ee:?}")
}
},
Err(e) => {
println!("{e:?}")
}
};
} }
async fn send_to_ipbl_ws(ctx: &Context, ip: &IpData, ret: &mut Vec<String>) { async fn send_to_ipbl_ws(ctx: &Context, ip: &IpData, ret: &mut Vec<String>) {