remove peers platform filter for failed connections
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
2f16d4c662
commit
b5cf959206
@ -1031,12 +1031,8 @@ 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