removed redundant logs
This commit is contained in:
parent
9cf1ade76a
commit
ee9f36efa8
|
@ -31,13 +31,9 @@ fn main() {
|
||||||
packet.header.qd_count = 1;
|
packet.header.qd_count = 1;
|
||||||
packet.questions = vec![question.clone()];
|
packet.questions = vec![question.clone()];
|
||||||
|
|
||||||
println!("sent packet: {:?}", packet);
|
|
||||||
|
|
||||||
let mut data = vec![];
|
let mut data = vec![];
|
||||||
packet.write_to(&mut data);
|
packet.write_to(&mut data);
|
||||||
|
|
||||||
println!("written packet: {:?}", data);
|
|
||||||
|
|
||||||
upstream_socket
|
upstream_socket
|
||||||
.send_to(&data, resolver)
|
.send_to(&data, resolver)
|
||||||
.expect("error in sending data to upstream");
|
.expect("error in sending data to upstream");
|
||||||
|
@ -71,7 +67,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("{:?}", upstream_packets);
|
|
||||||
recv_packet.answers = upstream_packets
|
recv_packet.answers = upstream_packets
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|x| x.is_some())
|
.filter(|x| x.is_some())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user