class Kameleoon::Managers::Tracking::LockVisitorTrackingRegistry

def erase_to_storage_limit

Not thread-safe
def erase_to_storage_limit
  visitors_to_remove_count = @visitors.size - (@storage_limit * REMOVAL_FACTOR).to_i
  return if visitors_to_remove_count <= 0
  @visitors.each do |vc|
    break if visitors_to_remove_count.zero?
    visitors_to_remove_count -= 1
    @visitors.delete(vc)
  end
end