From 36d5a4c8b057830ed9556d6330e271e75d015091 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Mon, 26 Jan 2026 14:40:32 +0000 Subject: [PATCH] protocol: use helper method Use the `is_persistent` helper method rather than repeating the `is_some` check. --- crates/radicle-protocol/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/radicle-protocol/src/service.rs b/crates/radicle-protocol/src/service.rs index d4ef6fa8..405dd223 100644 --- a/crates/radicle-protocol/src/service.rs +++ b/crates/radicle-protocol/src/service.rs @@ -1435,7 +1435,7 @@ where }); // Attempt to re-connect to persistent peers. - if self.config.peer(&remote).is_some() { + if self.config.is_persistent(&remote) { let delay = LocalDuration::from_secs(2u64.saturating_pow(session.attempts() as u32)) .clamp(MIN_RECONNECTION_DELTA, MAX_RECONNECTION_DELTA);