Skip to content

Commit

Permalink
finished spec/01-unit/30-new-dns-client/02-client_spec.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Jan 24, 2024
1 parent 95ee094 commit 518eaa6
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 142 deletions.
2 changes: 1 addition & 1 deletion kong/resty/dns_client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ end

local function resolve_all(self, name, opts, tries)
local key = "fast:" .. name .. ":" .. (opts.qtype or "all")
--log(tries, key)

if detect_recursion(opts, key) then
return nil, "recursion detected for name: " .. name
Expand All @@ -470,7 +471,6 @@ local function resolve_all(self, name, opts, tries)
stats_init(self.stats, name)
stats_incr(self.stats, name, "runs")

--log(tries, name)
-- lookup fastly with the key `fast:<qname>:<qtype>/all`
local answers, err, hit_level = self.cache:get(key)
if not answers then
Expand Down
Loading

0 comments on commit 518eaa6

Please sign in to comment.