Skip to content

Commit 2375c2c

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

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)