-
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
bugfix: should not save the runtime data of plugin into etcd
.
#1910
Conversation
apisix/core/json.lua
Outdated
@@ -26,6 +27,7 @@ local cached_tab = {} | |||
local _M = { | |||
version = 0.1, | |||
decode = require("cjson.safe").decode, | |||
sort_encode = require("apisix.core.json_sort").encode, |
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.
Better to use name encode_with_keys_sorted
.
apisix/core/json.lua
Outdated
@@ -26,6 +27,7 @@ local cached_tab = {} | |||
local _M = { | |||
version = 0.1, | |||
decode = require("cjson.safe").decode, | |||
sort_encode = require("apisix.core.json_sort").encode, |
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.
Is this function only for test cases?
apisix/core/json_sort.lua
Outdated
-- See the License for the specific language governing permissions and | ||
-- limitations under the License. | ||
-- | ||
|
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.
we should not put this file to core
if it only for test cases.
What this PR does / why we need it:
as title.
fixed #1836 .
Pre-submission checklist: