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 44f75abfc039f020415502ad7193343829d2e6bc
parent 906a0992d27bbfbde7914e62f8acbb09a1edc627
1 file changed +1 -1
modified crates/radicle-protocol/src/service.rs
@@ -1437,7 +1437,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);