Skip to content

Commit

Permalink
Code-format as requested in swisspost#194
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Jun 28, 2024
1 parent 1e7a7da commit dcfb2a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private <Ctx> void resume(Request<Ctx> req) {
// We still have a token reserved for ourself. Use those first before acquiring
// new ones. Explanation see comment in 'onOneDone()'.
req.numTokensAvailForOurself -= 1;
}else if (!req.limit.tryAcquire()) {
} else if (!req.limit.tryAcquire()) {
log.debug("redis request limit reached. Need to pause now.");
break; // Go to end of loop to schedule a run later.
}
Expand Down Expand Up @@ -139,7 +139,7 @@ private <Ctx> void resume(Request<Ctx> req) {
"No more resources to handle yet another request now.", null);
req.mentor.onError(ex, req.ctx);
return;
}else{
} else {
log.error("If you see this log, some unreachable code got reached. numInProgress={}, hasStarted={}",
req.numInProgress, req.hasStarted);
vertx.setTimer(4000, nonsense -> resume(req));
Expand Down

0 comments on commit dcfb2a0

Please sign in to comment.