Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki committed Jun 16, 2022
1 parent 023e559 commit d66a69a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kong/clustering/services/negotiation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,19 @@ local function split_services(services)
local accepted, accepted_n = {}, 0
local rejected, rejected_n = {}, 0
for name, version in pairs(services or empty_table) do
local tbl, place
local tbl, idx
if version.version then
accepted_n = accepted_n + 1
tbl, place = accepted, accepted_n
tbl, idx = accepted, accepted_n
else
rejected_n = rejected_n + 1
tbl, place = rejected, rejected_n
tbl, idx = rejected, rejected_n
end

tbl[place] = {
tbl[idx] = {
name = name,
version = version.version,
message = version.description
message = version.description,
}
end

Expand All @@ -200,7 +200,7 @@ end
local function info_to_service(info)
return info.name, {
version = info.version,
description = info.message
description = info.message,
}
end

Expand Down

0 comments on commit d66a69a

Please sign in to comment.