Skip to content

Commit

Permalink
some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Dec 19, 2023
1 parent 211621a commit 11d37e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions kong/router/fields.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ local str_buf = buffer.new(64)


local function get_cache_key(fields, params)
str_buf:reset()

for field, value in pairs(fields) do

-- these fields were not in cache key
Expand Down Expand Up @@ -165,7 +167,7 @@ local function get_cache_key(fields, params)
-- ignore unknown fields

::continue::
end
end -- for fields

return str_buf:get()
end
Expand All @@ -187,7 +189,7 @@ local function get_atc_context(schema, fields, params)
end

goto continue
end
end -- if func

func = COMPLEX_FIELDS_FUNCS[field]

Expand Down Expand Up @@ -219,11 +221,11 @@ local function get_atc_context(schema, fields, params)
end

goto continue
end
end -- if func

if not func then -- unknown field
error("unknown router matching schema field: " .. field)
end
end -- if func

::continue::
end -- for fields
Expand Down

0 comments on commit 11d37e7

Please sign in to comment.