Skip to content

Commit

Permalink
💡 Documenting source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed May 2, 2018
1 parent 643603a commit 52b3d56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public void before(JoinPoint joinPoint) throws Exception {

boolean limit = redisLimit.limit();
if (!limit) {
logger.warn("request has bean limit");
throw new RuntimeException("request has bean limit") ;
logger.warn("request has bean limited");
throw new RuntimeException("request has bean limited") ;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons

boolean limit = redisLimit.limit();
if (!limit) {
logger.warn("request has bean limit");
response.sendError(500, "request limit");
logger.warn("request has bean limited");
response.sendError(500, "request limited");
return false;
}

Expand Down

0 comments on commit 52b3d56

Please sign in to comment.