You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by as...@apache.org on 2024/03/18 08:08:28 UTC
(apisix) branch master updated: perf(ssl): reuse array length variable (#11053)
This is an automated email from the ASF dual-hosted git repository.
ashishtiwari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 231412d05 perf(ssl): reuse array length variable (#11053)
231412d05 is described below
commit 231412d05e5d25c1d03a1e834e25efdcf72a9d2e
Author: 徐瑞东 <xu...@gmail.com>
AuthorDate: Mon Mar 18 16:08:22 2024 +0800
perf(ssl): reuse array length variable (#11053)
Signed-off-by: xuruidong <xu...@gmail.com>
---
apisix/ssl/router/radixtree_sni.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apisix/ssl/router/radixtree_sni.lua b/apisix/ssl/router/radixtree_sni.lua
index c0c6ab994..ec6adac09 100644
--- a/apisix/ssl/router/radixtree_sni.lua
+++ b/apisix/ssl/router/radixtree_sni.lua
@@ -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)