From 87694f5f4a7e0b9da1c535b4be62d8071705c0a1 Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 12 Jul 2023 00:04:44 -0400 Subject: [PATCH] more entries detail --- veilid-core/src/routing_table/debug.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/veilid-core/src/routing_table/debug.rs b/veilid-core/src/routing_table/debug.rs index f329a4b4..32c9d366 100644 --- a/veilid-core/src/routing_table/debug.rs +++ b/veilid-core/src/routing_table/debug.rs @@ -114,6 +114,13 @@ impl RoutingTable { let mut out = String::new(); out += &format!("Entries: {}\n", inner.bucket_entry_count()); + out += &format!(" Live:\n"); + for ec in inner.cached_entry_counts() { + let routing_domain = ec.0 .0; + let crypto_kind = ec.0 .1; + let count = ec.1; + out += &format!(" {:?}:{}: {}\n", routing_domain, crypto_kind, count); + } for ck in &VALID_CRYPTO_KINDS { let mut b = 0; let blen = inner.buckets[ck].len();