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:
YuanSheng Wang 2019-07-12 19:08:59 +08:00 committed by GitHub
parent 225b3d3106
commit 7cf243cdf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,8 @@ local function sync_data(self)
return true
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,
" res: ", json.delay_encode(res, true),
" headers: ", json.delay_encode(headers, true))

View File

@ -1,5 +1,6 @@
-- Copyright (C) Yuansheng Wang
local require = require
local r3router = require("resty.r3")
local core = require("apisix.core")
local plugin = require("apisix.plugin")

View File

@ -3,5 +3,6 @@ modules = {
["lua/apisix/*"] = "apisix",
["lua/apisix/admin/*"] = "admin",
["lua/apisix/core/*"] = "core",
["lua/apisix/http/*"] = "http",
["lua/apisix/plugins/*"] = "plugins",
}