Skip to content

Commit dbdce63

Browse files
committed
feat(lib): remove version check from resty.events
1 parent 830ae32 commit dbdce63

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.github/workflows/build_and_test_with_resty_events.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-20.04
2121
strategy:
2222
matrix:
23-
openresty-version: [1.19.9.1, 1.21.4.1, 1.21.4.3, 1.25.3.1]
23+
openresty-version: [1.19.9.1, 1.21.4.3, 1.25.3.1]
2424

2525
steps:
2626
- name: Update and install OS dependencies

.github/workflows/build_and_test_with_worker_events.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-20.04
2020
strategy:
2121
matrix:
22-
openresty-version: [1.21.4.1]
22+
openresty-version: [1.21.4.3]
2323

2424
steps:
2525
- name: Update and install OS dependencies

lib/resty/healthcheck.lua

-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ local type = type
4848
local assert = assert
4949

5050

51-
local RESTY_EVENTS_VER = [[^0\.[12]\.\d+$]]
5251
local RESTY_WORKER_EVENTS_VER = "0.3.3"
5352

5453

@@ -113,8 +112,6 @@ local function load_events_module(self)
113112

114113
elseif self.events_module == "resty.events" then
115114
worker_events = require("resty.events.compat")
116-
local version_match = ngx.re.match(worker_events._VERSION, RESTY_EVENTS_VER, "o")
117-
assert(version_match, "unsupported lua-resty-events version")
118115

119116
else
120117
error("unknown events module")

0 commit comments

Comments
 (0)