Skip to content

Commit

Permalink
Don't mark throttle as error (#2079)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Feb 8, 2022
1 parent 60c89d2 commit d26478e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,11 @@ private void handleStatsbeatOnResponse(
statsbeatModule
.getNetworkStatsbeat()
.incrementRequestSuccessCount(System.currentTimeMillis() - startTime, instrumentationKey);
} else if (statusCode == 439) {
statsbeatModule.getNetworkStatsbeat().incrementThrottlingCount(instrumentationKey);
} else {
statsbeatModule.getNetworkStatsbeat().incrementRequestFailureCount(instrumentationKey);
}
if (statusCode == 439) {
statsbeatModule.getNetworkStatsbeat().incrementThrottlingCount(instrumentationKey);
}
}

private Consumer<Throwable> errorHandler(
Expand Down

0 comments on commit d26478e

Please sign in to comment.