Skip to content

Commit

Permalink
fix a typo in should_send_packet comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnlef committed Apr 29, 2019
1 parent fd9bd8d commit bc4d165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ impl Socket {
Ok(bytes_sent)
}

// In the presence of a link conditioner, we may not want to packet each time.
// In the presence of a link conditioner, we would like it to determine whether or not we should
// send a packet.
fn should_send_packet(&self) -> bool {
if let Some(link_conditioner) = &self.link_conditioner {
link_conditioner.should_send()
Expand Down

0 comments on commit bc4d165

Please sign in to comment.