Skip to content

Commit 231412d

Browse files
authored
perf(ssl): reuse array length variable (#11053)
Signed-off-by: xuruidong <[email protected]>
1 parent c7d1587 commit 231412d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apisix/ssl/router/radixtree_sni.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ local function create_router(ssl_items)
7878

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

0 commit comments

Comments
 (0)