Fix formatter drift after rebasing security patch

This commit is contained in:
sabraman
2026-04-12 20:38:11 +03:00
parent d3b0dbd541
commit bac9cc01f3
2 changed files with 3 additions and 4 deletions

View File

@@ -281,9 +281,7 @@ fn candidate_scan_start_offset_in(
.handshake
.auth_candidate_scan_seq
.fetch_add(1, Ordering::Relaxed);
candidate_scan_peer_seed(peer_ip)
.wrapping_add(seq as usize)
% total_users
candidate_scan_peer_seed(peer_ip).wrapping_add(seq as usize) % total_users
}
fn parse_tls_auth_material(

View File

@@ -1339,7 +1339,8 @@ async fn mtproto_overload_full_scans_small_runtime_snapshot_to_preserve_cold_use
}
let replay_checker = ReplayChecker::new(128, Duration::from_secs(60));
let handshake = make_valid_mtproto_handshake("00000000000000000000000000000020", ProtoTag::Secure, 2);
let handshake =
make_valid_mtproto_handshake("00000000000000000000000000000020", ProtoTag::Secure, 2);
let peer: SocketAddr = "198.51.100.215:44326".parse().unwrap();
let result = handle_mtproto_handshake_with_shared(