Skip to content

Commit

Permalink
Should fix missing method on older java version
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Dec 22, 2023
1 parent 3ae09a5 commit d2fe20f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ private String getURLContent(String urlStr) {
logger.info("Null body with " + response.code());
}*/
// System.out.println("Unsuccessful for " + urlStr + ": " + response.code());
lastFail.put(urlStr, System.currentTimeMillis() + random.nextInt(-2_000, 2_000));

lastFail.put(urlStr, System.currentTimeMillis() + (random.nextInt(4_000)-2_000));
return urlCache.getOrDefault(urlStr, "");
}
String r = body.string();
Expand Down

0 comments on commit d2fe20f

Please sign in to comment.