Skip to content

Commit

Permalink
[BE] refactor: 요청 제한 관련 코드 제거 (#983)
Browse files Browse the repository at this point in the history
* refactor: request limit 코드 제거

* refactor: 로컬, 테스트의 request limit 변수 제거
  • Loading branch information
nayonsoso authored Nov 28, 2024
1 parent 0522c5f commit 1c99dd8
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 216 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.springframework.web.servlet.resource.NoResourceFoundException;
import reviewme.global.exception.BadRequestException;
import reviewme.global.exception.DataInconsistencyException;
import reviewme.config.requestlimit.TooManyRequestException;
import reviewme.global.exception.FieldErrorResponse;
import reviewme.global.exception.NotFoundException;
import reviewme.global.exception.UnauthorizedException;
Expand Down Expand Up @@ -51,11 +50,6 @@ public ProblemDetail handleDataConsistencyException(DataInconsistencyException e
return ProblemDetail.forStatusAndDetail(HttpStatus.INTERNAL_SERVER_ERROR, ex.getErrorMessage());
}

@ExceptionHandler(TooManyRequestException.class)
public ProblemDetail handleDuplicateRequestException(TooManyRequestException ex) {
return ProblemDetail.forStatusAndDetail(HttpStatus.TOO_MANY_REQUESTS, ex.getErrorMessage());
}

@ExceptionHandler(Exception.class)
public ProblemDetail handleException(Exception ex) {
log.error("Internal server error has occurred", ex);
Expand Down
6 changes: 0 additions & 6 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,3 @@ cors:
allowed-origins:
- http://localhost
- https://localhost

request-limit:
threshold: 3
duration: 1s
host: localhost
port: 6379

This file was deleted.

6 changes: 0 additions & 6 deletions backend/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,3 @@ logging:
cors:
allowed-origins:
- https://allowed-domain.com

request-limit:
threshold: 3
duration: 1s
host: localhost
port: 6379

0 comments on commit 1c99dd8

Please sign in to comment.