Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
protocol: use helper method
Fintan Halpenny committed 3 months ago
commit 36d5a4c8b057830ed9556d6330e271e75d015091
parent 73f9a350331f6c6269f7f60e1e94612c948fb423
1 file changed +1 -1
modified 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);