Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Dec 30, 2023
1 parent 7b6d354 commit 8ce2a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocols/autonat/src/v2/client/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ where

entries
.into_iter()
.rev()
.rev() // `sort_unstable` is ascending
.take(self.config.max_candidates)
.map(|(addr, _)| addr)
}
Expand Down

0 comments on commit 8ce2a01

Please sign in to comment.