Skip to content

Commit

Permalink
path: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedo committed Dec 12, 2023
1 parent 5b1e3d2 commit d312a4f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions quiche/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,7 @@ impl Path {

pub fn on_challenge_received(&mut self, data: [u8; 8]) {
// Discard challenges that would cause us to queue more than we want.
if self.received_challenges.len() ==
self.received_challenges_max_len
{
if self.received_challenges.len() == self.received_challenges_max_len {
return;
}

Expand Down Expand Up @@ -1187,7 +1185,8 @@ mod tests {
4
);

// If we receive multiple challenges, we can store them up to our queue size
// If we receive multiple challenges, we can store them up to our queue
// size.
server_path.on_challenge_received(data);
assert_eq!(server_path.received_challenges.len(), 1);
server_path.on_challenge_received(data_2);
Expand Down Expand Up @@ -1231,6 +1230,5 @@ mod tests {
);

// There will never be a response for fourth probe...

}
}

0 comments on commit d312a4f

Please sign in to comment.