mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 20:17:35 +08:00
change: code style + added local cache. (#241)
* change: code style + added local cache. * luacov: added new path `lua/apisix/http/*`.
This commit is contained in:
parent
225b3d3106
commit
7cf243cdf9
@ -166,7 +166,8 @@ local function sync_data(self)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local res, headers, err = waitdir(self.etcd_cli, self.key, self.prev_index + 1)
|
local res, headers, err = waitdir(self.etcd_cli, self.key,
|
||||||
|
self.prev_index + 1)
|
||||||
log.debug("waitdir key: ", self.key, " prev_index: ", self.prev_index + 1,
|
log.debug("waitdir key: ", self.key, " prev_index: ", self.prev_index + 1,
|
||||||
" res: ", json.delay_encode(res, true),
|
" res: ", json.delay_encode(res, true),
|
||||||
" headers: ", json.delay_encode(headers, true))
|
" headers: ", json.delay_encode(headers, true))
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
-- Copyright (C) Yuansheng Wang
|
-- Copyright (C) Yuansheng Wang
|
||||||
|
|
||||||
|
local require = require
|
||||||
local r3router = require("resty.r3")
|
local r3router = require("resty.r3")
|
||||||
local core = require("apisix.core")
|
local core = require("apisix.core")
|
||||||
local plugin = require("apisix.plugin")
|
local plugin = require("apisix.plugin")
|
||||||
|
@ -3,5 +3,6 @@ modules = {
|
|||||||
["lua/apisix/*"] = "apisix",
|
["lua/apisix/*"] = "apisix",
|
||||||
["lua/apisix/admin/*"] = "admin",
|
["lua/apisix/admin/*"] = "admin",
|
||||||
["lua/apisix/core/*"] = "core",
|
["lua/apisix/core/*"] = "core",
|
||||||
|
["lua/apisix/http/*"] = "http",
|
||||||
["lua/apisix/plugins/*"] = "plugins",
|
["lua/apisix/plugins/*"] = "plugins",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user