Skip to content

Commit

Permalink
hotfix : health체크 무시 (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackBean99 authored Jun 30, 2023
1 parent 3748589 commit 8570384
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class IPRateLimiter(
val buckets: ProxyManager<String>? = null,

@Value("\${throttle.overdraft}")
val overdraft: Long = 0,
val overdraft: Long,

@Value("\${throttle.greedyRefill}")
private val greedyRefill: Long = 0,
private val greedyRefill: Long,
) {
fun resolveBucket(key: String?): Bucket {
val configSupplier: Supplier<BucketConfiguration> = configSupplierForUser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class ThrottlingInterceptor(
response: HttpServletResponse,
handler: Any,
): Boolean {
// 헬스체크 무시
if (request.requestURI.contains("/v1/example/health")) {
return true
}
val userId: Long = SecurityUtils.currentUserId
val remoteAddr = request.remoteAddr
log.info("remoteAddr : $remoteAddr")
Expand Down

0 comments on commit 8570384

Please sign in to comment.