Skip to content

Commit

Permalink
SSU: Comment fix
Browse files Browse the repository at this point in the history
re: LHMCache iteration order
  • Loading branch information
zzzi2p committed Oct 22, 2023
1 parent d5462b3 commit 8379410
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2990,10 +2990,9 @@ private void saveTokens() {
}
long now = _context.clock().now();
int count = 0;
// Roughly speaking, the LHMCache will iterate newest-first,
// so when we add them back in loadTokens(), the oldest would be at
// the head of the map and the newest would be purged first.
// Sort them by expiration oldest-first so loadTokens() will
// Roughly speaking, the LHMCache will iterate oldest-first,
// but to be sure,
// sort them by expiration oldest-first so loadTokens() will
// put them in the LHMCache in the right order.
TokenComparator comp = new TokenComparator();
List<Map.Entry<RemoteHostId, Token>> tmp;
Expand Down

0 comments on commit 8379410

Please sign in to comment.