Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined symbol: r3_tree_create #44

Open
xiangnanscu opened this issue Jun 15, 2021 · 1 comment
Open

undefined symbol: r3_tree_create #44

xiangnanscu opened this issue Jun 15, 2021 · 1 comment

Comments

@xiangnanscu
Copy link

code

local r3 = require("resty.r3_resty").new()
local encode_json = require("cjson.safe").encode

function foo(params) -- foo handler
  ngx.say("foo: ", encode_json(params))
end

-- routing
r3:get("/foo/{id}/{name}", foo)

-- don't forget!!!
r3:compile()

-- dispatch
local ok = r3:dispatch("/foo/a/b", "GET")

print(ok)

and get error:
undefined symbol: r3_tree_create

@membphis
Copy link
Member

We have given up the maintenance of this library, welcome to try https://github.com/api7/lua-resty-radixtree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants