fix(torrents): preserve metadata retention on malformed records

This commit is contained in:
NimBold
2026-08-01 22:36:37 +03:30
parent ab6c3c372e
commit 87d682709e
2 changed files with 51 additions and 16 deletions
+2
View File
@@ -3928,6 +3928,8 @@ mod tests {
#[test]
fn torrent_options_reject_invalid_peer_values() {
assert!(normalize_torrent_max_peers(Some(-1)).is_err());
let mut options = serde_json::Map::new();
let payload = SpawnPayload {
is_torrent: true,