Revert "remove peers platform filter for failed connections"
This reverts commit b5cf9592067562a9ff4651524d186d02c880bd04.
This commit is contained in:
parent
f47a5600b1
commit
9ad9cb8ff2
@ -1031,8 +1031,12 @@ impl PeerConfig {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let c = PeerConfig::load(&id_decoded_string);
|
let c = PeerConfig::load(&id_decoded_string);
|
||||||
|
if c.info.platform.is_empty() {
|
||||||
|
fs::remove_file(p).ok();
|
||||||
|
}
|
||||||
(id_decoded_string, t, c)
|
(id_decoded_string, t, c)
|
||||||
})
|
})
|
||||||
|
.filter(|p| !p.2.info.platform.is_empty())
|
||||||
.collect();
|
.collect();
|
||||||
peers.sort_unstable_by(|a, b| b.1.cmp(&a.1));
|
peers.sort_unstable_by(|a, b| b.1.cmp(&a.1));
|
||||||
return peers;
|
return peers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user