Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored and hanshuebner committed Jun 3, 2023
1 parent d2dc2c0 commit c292e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kong/clustering/data_plane.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function _M:communicate(premature)
end
end

-- register the recv event handle in each communication
-- register the recv event handler in each communication
events.clustering_recv_config(handler, true)

local write_thread = ngx.thread.spawn(function()
Expand Down Expand Up @@ -278,7 +278,7 @@ function _M:communicate(premature)
ngx_log(ngx_ERR, _log_prefix, err_msg, log_suffix)
end

-- unregister the recv event handle
-- unregister the recv event handler
events.clustering_recv_config(handler, false)

if not exiting() then
Expand Down
4 changes: 2 additions & 2 deletions kong/clustering/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ local function init_dp()
end


local function clustering_recv_config(handler, is_reg)
if is_reg then
local function clustering_recv_config(handler, enable)
if enable then
worker_events.register(handler, "clustering", "recv_config")

else
Expand Down

1 comment on commit c292e95

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:c292e9546ef7b340282b93d69867aeb41878add9
Artifacts available https://github.com/Kong/kong/actions/runs/5161855564

Please sign in to comment.