You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/10/24 08:59:11 UTC
[GitHub] [apisix] tzssangglass commented on a diff in pull request #8157: feat: renew route lrucache when the routes change
tzssangglass commented on code in PR #8157:
URL: https://github.com/apache/apisix/pull/8157#discussion_r1003063161
##########
apisix/plugins/ai.lua:
##########
@@ -224,15 +220,20 @@ local function routes_analyze(routes)
or route_flags["service_id"]
or route_flags["plugin_config_id"]
or global_rules_flag then
- router.router_http.match = orig_router_match
+ base_router.match_uri = orig_router_match
else
core.log.info("use ai plane to match route")
- router.router_http.match = ai_match
+ base_router.match_uri = ai_match_uri
+ local count = #routes + 3000
Review Comment:
done
##########
apisix/plugins/ai.lua:
##########
@@ -224,15 +220,20 @@ local function routes_analyze(routes)
or route_flags["service_id"]
or route_flags["plugin_config_id"]
or global_rules_flag then
- router.router_http.match = orig_router_match
+ base_router.match_uri = orig_router_match
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org