From b5cf9592067562a9ff4651524d186d02c880bd04 Mon Sep 17 00:00:00 2001 From: 21pages Date: Sun, 2 Jul 2023 10:34:51 +0800 Subject: [PATCH] remove peers platform filter for failed connections Signed-off-by: 21pages --- libs/hbb_common/src/config.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index 39b40046e..33d462028 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -1031,12 +1031,8 @@ impl PeerConfig { }; let c = PeerConfig::load(&id_decoded_string); - if c.info.platform.is_empty() { - fs::remove_file(p).ok(); - } (id_decoded_string, t, c) }) - .filter(|p| !p.2.info.platform.is_empty()) .collect(); peers.sort_unstable_by(|a, b| b.1.cmp(&a.1)); return peers;