refactor some lua code
This commit is contained in:
parent
ced6c5bd96
commit
cb4755835e
11 changed files with 83 additions and 47 deletions
|
|
@ -900,10 +900,7 @@ stream {
|
|||
balancer.log()
|
||||
{{ end }}
|
||||
|
||||
ok, res = pcall(monitor.call)
|
||||
if not ok then
|
||||
ngx.log(ngx.ERR, "request_id failed: " .. tostring(res))
|
||||
end
|
||||
monitor.call()
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue