Serialize peer deletion with credential writes

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou committed 2026-10-26 15:22:00 +08:00
1 parent f15eb3d40d
commit 3ee3afd438
1 file changed
+1
+1
View File
@@ -1868,6 +1868,7 @@ impl PeerConfig {
}
pub fn remove(id: &str) {
let _lock = PEER_CONFIG_WRITE_LOCK.lock().unwrap();
fs::remove_file(Self::path(id)).ok();
}