Skip to content

Commit

Permalink
fix: fail immediately if GitHub limits requests for some reason (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleydyr committed Feb 24, 2024
1 parent c5e1331 commit 1b587a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public String get(String os, String arch) {
try {
GitHub github = new GitHubBuilder()
.withConnector(new ImpatientHttpConnector(this::setupConnection))
.withRateLimitHandler(RateLimitHandler.FAIL)
.withAbuseLimitHandler(AbuseLimitHandler.FAIL)
.build();

GHRepository repository = github.getRepository("sass/dart-sass");
Expand Down

0 comments on commit 1b587a9

Please sign in to comment.