Skip to content

Commit

Permalink
Fix so if _oldest and _cleanedate equals it will still perform the cl…
Browse files Browse the repository at this point in the history
…eaning in Deduplicator (#2106)
  • Loading branch information
npehrsson authored Mar 18, 2024
1 parent b41877b commit da30594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Proto.Actor/Deduplication/DeduplicationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void CleanIfNeeded(long cutoff, long now)
_cleanedAt = now;
_oldest = 0;
}
else if (_processed.Count >= 50 && _cleanedAt < _oldest)
else if (_processed.Count >= 50 && _cleanedAt <= _oldest)
{
var oldest = long.MaxValue;

Expand Down

0 comments on commit da30594

Please sign in to comment.