Skip to content

Commit

Permalink
style(lib/compat): update module version (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Jun 6, 2024
1 parent 05f40b9 commit 5648736
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lualib/resty/events/compat/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- compatible with lua-resty-worker-events 1.0.0
local events = require("resty.events")

local ev

Expand All @@ -14,7 +15,7 @@ local handlers = {}
local _configured

local _M = {
_VERSION = "0.1.0",
_VERSION = events._VERSION,
}

function _M.poll()
Expand All @@ -26,7 +27,7 @@ function _M.poll()
end

function _M.configure(opts)
ev = require("resty.events").new(opts)
ev = events.new(opts)

local ok, err = ev:init_worker()
if not ok then
Expand Down

0 comments on commit 5648736

Please sign in to comment.