Skip to content

Commit f4ebf56

Browse files
committed
refactor(pdk): remove duplicate rate limiting context check
1 parent 1228042 commit f4ebf56

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
message: Remove duplicate rate limiting context check in PDK
2+
type: performance
3+
scope: PDK

kong/pdk/private/rate_limiting.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ function _M.get_stored_response_header(ngx_ctx, key)
8585
return nil
8686
end
8787

88-
if not _has_rl_ctx(ngx_ctx) then
89-
return nil
90-
end
91-
9288
local rl_ctx = _get_rl_ctx(ngx_ctx)
9389
return rl_ctx[key]
9490
end

0 commit comments

Comments
 (0)