-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feature: added serverless plugins. #86
Conversation
Still not finished, is it? |
|
||
local index = 1 | ||
for _, func_str in ipairs(functions) do | ||
local _, func = pcall(loadstring(func_str)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it maybe failed, we need to capture the error message.
}, | ||
functions = { | ||
type = "array", | ||
items = {type = "string"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing check to functions
, it should be a valid Lua code.
local loadstring = loadstring | ||
local require = require | ||
|
||
return function(plugin_name, priority) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this style, how about to use new
method to create new instance?
No description provided.