pub fn record_adaptive_batch_size(peer_id: &str, batch_size: usize)
Record current adaptive batch size for a peer.