Skip to content

Commit

Permalink
remove swap comment
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Jan 29, 2025
1 parent 1892554 commit b494274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/forwarding_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl VoteClient {

fn send_batch(&self, input_batch: &mut Vec<(Vec<u8>, SocketAddr)>) {
let mut batch = Vec::with_capacity(FORWARD_BATCH_SIZE);
core::mem::swap(&mut batch, input_batch); // why do we swap?
core::mem::swap(&mut batch, input_batch);
let _res = batch_send(&self.udp_socket, &batch);
}
}
Expand Down

0 comments on commit b494274

Please sign in to comment.