Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Nov 23, 2023
1 parent 3d53d48 commit 42e76d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkarr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ impl PkarrClient {

// In the rare ocasion of timestamp collission,
// we use the one with the largest value
if signed_packet.timestamp() == most_recent.timestamp() {
if signed_packet.encoded_packet() < most_recent.encoded_packet() {
continue;
}
if signed_packet.timestamp() == most_recent.timestamp()
&& signed_packet.encoded_packet() < most_recent.encoded_packet()
{
continue;
}
}

Expand Down

0 comments on commit 42e76d8

Please sign in to comment.