Skip to content

Commit

Permalink
perf(ssl): reuse array length variable (#11053)
Browse files Browse the repository at this point in the history
Signed-off-by: xuruidong <[email protected]>
  • Loading branch information
xuruidong authored Mar 18, 2024
1 parent c7d1587 commit 231412d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/ssl/router/radixtree_sni.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ local function create_router(ssl_items)

core.log.info("route items: ", core.json.delay_encode(route_items, true))
-- for testing
if #route_items > 1 then
if idx > 1 then
core.log.info("we have more than 1 ssl certs now")
end
local router, err = router_new(route_items)
Expand Down

0 comments on commit 231412d

Please sign in to comment.