Skip to content

Commit

Permalink
remove local variable options for r:query
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Apr 8, 2024
1 parent 7a52269 commit e7f977f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kong/dns/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ local function resolve_query(self, name, qtype)

local start_time = now()

local options = { additional_section = true, qtype = qtype }
local answers, err = r:query(name, options)
local answers, err = r:query(name, { additional_section = true, qtype = qtype })
r:destroy()

local query_time = now() - start_time -- the time taken for the DNS query
Expand Down

0 comments on commit e7f977f

Please sign in to comment.