Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Dec 11, 2024
1 parent d176dd3 commit fb4a39b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions kong/clustering/rpc/concentrator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ function _M:_event_loop(lconn)

local _, notifications
res, err, _, notifications = lconn:query(sql or "SELECT 1;") -- keepalive
ngx.log(ngx.INFO, "xxx concetrator lconn:query ", sql or "SELECT 1;", " -> ",
require("inspect")(res), " err:" , err, " notifications:", require("inspect")(notifications))
if sql then
ngx.log(ngx.INFO, "xxx concetrator lconn:query ", sql or "SELECT 1;", " -> ",
require("inspect")(res), " err:" , err, " notifications:", require("inspect")(notifications))
end
if not res then
return nil, "query to Postgres failed: " .. err
end
Expand Down
2 changes: 1 addition & 1 deletion spec/02-integration/09-hybrid_mode/11-status_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ for _, strategy in helpers.each_strategy() do


-- sleep > 10s , it will succeed
ngx.sleep(11)
ngx.sleep(1)


print("+++++ post /services")
Expand Down

0 comments on commit fb4a39b

Please sign in to comment.