Skip recursive discovery query if no useful ENRs (#6207)

* Skip recursive discovery query if no useful ENRs
This commit is contained in:
Lion - dapplion
2024-08-06 04:32:56 +02:00
committed by GitHub
parent acd3151184
commit f7f0bfc9f2
2 changed files with 20 additions and 2 deletions

View File

@@ -77,6 +77,12 @@ pub static DISCOVERY_SESSIONS: LazyLock<Result<IntGauge>> = LazyLock::new(|| {
"The number of active discovery sessions with peers",
)
});
pub static DISCOVERY_NO_USEFUL_ENRS: LazyLock<Result<IntCounter>> = LazyLock::new(|| {
try_create_int_counter(
"discovery_no_useful_enrs_found",
"Total number of counts a query returned no useful ENRs to dial",
)
});
pub static PEERS_PER_CLIENT: LazyLock<Result<IntGaugeVec>> = LazyLock::new(|| {
try_create_int_gauge_vec(