peer_to_map function serde password

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-08-20 11:24:34 +08:00
parent e1ae3601c4
commit ee8510cec7
2 changed files with 6 additions and 12 deletions

View File

@@ -895,7 +895,7 @@ pub fn main_load_recent_peers_for_ab(filter: String) -> String {
if !config::APP_DIR.read().unwrap().is_empty() {
let peers: Vec<HashMap<&str, String>> = PeerConfig::peers(id_filters)
.drain(..)
.map(|(id, _, p)| peer_to_map_ab(id, p))
.map(|(id, _, p)| peer_to_map(id, p))
.collect();
return serde_json::ser::to_string(&peers).unwrap_or("".to_owned());
}