Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(*) properly check worker_events.post_local() ret values (#3692)
This function can return one of: 1. `true, nil` 2. `nil, err` 3. `false, nil` Case 3. occurs when the library is already polling, likely in situations with busy Admin API workloads. Because our return values check were incorrect, some error logs would appear such as: ``` [error] 32#0: *6883 [lua] handler.lua:218: [events] could not broadcast crud event: nil, client: 10.x.x.x, server: kong, request: "POST /auth/oauth2/token HTTP/1.1" ```
- Loading branch information
1 parent
7b3d5da
commit 5ad6048
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters