1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-17 09:04:50 +02:00

q drop logging

This commit is contained in:
Heiko Schaefer 2023-07-10 21:49:54 +02:00
parent 18219aa186
commit dd4277b33d
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -618,39 +618,6 @@ class Query(
authRpaths[issuerFpr] = Pair(p, amount)
}
// if TRACE {
// t!("auth_rpaths:")
// let mut v: Vec<_> = auth_rpaths.iter().collect()
// v.sort_by(|(fpr_a, _), (fpr_b, _)| {
// let userid_a = self.network()
// .lookup_synopsis_by_fpr(*fpr_a).expect("already looked up")
// .primary_userid().map(|userid| {
// String::from_utf8_lossy(userid.value()).into_owned()
// }).unwrap_or("".into())
// let userid_b = self.network()
// .lookup_synopsis_by_fpr(*fpr_b).expect("already looked up")
// .primary_userid().map(|userid| {
// String::from_utf8_lossy(userid.value()).into_owned()
// }).unwrap_or("".into())
//
// userid_a.cmp(&userid_b).
// then(fpr_a.cmp(&fpr_b))
// })
// for (fpr, (path, amount)) in v {
// let userid = self.network()
// .lookup_synopsis_by_fpr(fpr).expect("already looked up")
// .primary_userid().map(|userid| {
// String::from_utf8_lossy(userid.value()).into_owned()
// })
// .unwrap_or("<missing User ID>".into())
// t!(" <{}, {}>: {}",
// fpr, userid,
// format!("{} trust amount (max: {}), {} edges",
// amount, path.amount(),
// path.len() - 1))
// }
// }
return authRpaths
}
}