summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-11-16 20:25:57 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-11-16 20:25:57 +0100
commitb573f87ecea213e9f8526f34c95224cec699bc44 (patch)
treebda34e625b59adb198dccbe2f5b164065e8c2f86 /src
parenthub: add basic elastic-search forwarding (diff)
untabify
Diffstat (limited to 'src')
-rw-r--r--src/daq/nginx-lua/s5-nginx.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daq/nginx-lua/s5-nginx.lua b/src/daq/nginx-lua/s5-nginx.lua
index ab62bab..a5fb798 100644
--- a/src/daq/nginx-lua/s5-nginx.lua
+++ b/src/daq/nginx-lua/s5-nginx.lua
@@ -109,11 +109,11 @@ end
function _SFIVE.fetch()
ngx.log(ngx.INFO, "SFive(fetch): client connected")
- local ok, err = ngx.on_abort(function() ngx.exit(ngx.HTTP_GONE) end)
- if not ok then
- ngx.log(ngx.ERR, "failed to register the on_abort callback: ", err)
- ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
- end
+ local ok, err = ngx.on_abort(function() ngx.exit(ngx.HTTP_GONE) end)
+ if not ok then
+ ngx.log(ngx.ERR, "failed to register the on_abort callback: ", err)
+ ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
+ end
while true do
logs = sfive_data:get_keys()