more tracing in on-demand

This commit is contained in:
Robert Habermeier 2017-03-23 13:24:04 +01:00
parent 77f036ee21
commit ec52a4a235
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,6 @@ impl OnDemand {
}
}
trace!(target: "on_demand", "No suitable peer for request");
self.orphaned_requests.write().push(pending);
}
@ -353,6 +352,7 @@ impl OnDemand {
let to_dispatch = ::std::mem::replace(&mut *self.orphaned_requests.write(), Vec::new());
trace!(target: "on_demand", "Attempting to dispatch {} orphaned requests.", to_dispatch.len());
for mut orphaned in to_dispatch {
let hung_up = match orphaned {
Pending::HeaderProof(_, ref mut sender) => match *sender {