Reduce the maximum number of versions in play to 1,000.

This commit is contained in:
Jon Chambers 2020-08-03 15:27:34 -04:00 committed by Jon Chambers
parent 40684a93a2
commit ad97731d46
2 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ public class UserAgentTagUtil {
"desktop", Pattern.compile("^Signal Desktop (1[^ ]+).*$", Pattern.CASE_INSENSITIVE),
"ios", Pattern.compile("^Signal/(3[^ ]+) \\(.*ios.*\\)$", Pattern.CASE_INSENSITIVE));
static final int MAX_VERSIONS = 10_000;
static final int MAX_VERSIONS = 1_000;
private static final Set<Pair<String, String>> SEEN_VERSIONS = new HashSet<>();
private UserAgentTagUtil() {