Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tzssangglass committed Oct 19, 2022
1 parent 8e93f8b commit 5df63c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apisix/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
--

local CONST = {
CREATE_NEW_HTTP_ROUTER = 1,
BUILD_ROUTER = 1,
}

local _M = {
Expand Down
2 changes: 1 addition & 1 deletion apisix/http/route.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function _M.create_radixtree_uri_router(routes, uri_routes, with_parameter)
end
end

event.push(event.CONST.CREATE_NEW_HTTP_ROUTER, uri_routes)
event.push(event.CONST.BUILD_ROUTER, uri_routes)
core.log.info("route items: ", core.json.delay_encode(uri_routes, true))

if with_parameter then
Expand Down
2 changes: 1 addition & 1 deletion apisix/plugins/ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ end


function _M.init()
event.register(event.CONST.CREATE_NEW_HTTP_ROUTER, routes_analyze)
event.register(event.CONST.BUILD_ROUTER, routes_analyze)
end

return _M

0 comments on commit 5df63c4

Please sign in to comment.