updated ipblc with zmq error printing on send
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
aa10a1ca87
commit
6d5d10a66e
@ -25,8 +25,23 @@ impl std::fmt::Debug for FileEvent {
|
||||
|
||||
async fn send_to_ipbl_zmq(socket: &zmq::Socket, ip: &IpData) {
|
||||
let msg = format!("{value}", value = serde_json::to_string(&ip).unwrap());
|
||||
socket.send(&msg, 0).unwrap();
|
||||
socket.recv_string(0).unwrap().unwrap();
|
||||
match socket.send(&msg, 0) {
|
||||
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>) {
|
||||
|
Loading…
Reference in New Issue
Block a user