Mercurial > prosody-hg
comparison plugins/mod_bosh.lua @ 7391:c381106173d0
mod_bosh: Add annotations to ignore unused arguments [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 19 Apr 2016 18:00:04 +0200 |
| parents | 3219b23c4255 |
| children | 8cca24bea3e0 |
comparison
equal
deleted
inserted
replaced
| 7390:3219b23c4255 | 7391:c381106173d0 |
|---|---|
| 197 local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", | 197 local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate", |
| 198 ["xmlns:stream"] = xmlns_streams, condition = "item-not-found" }); | 198 ["xmlns:stream"] = xmlns_streams, condition = "item-not-found" }); |
| 199 return tostring(close_reply) .. "\n"; | 199 return tostring(close_reply) .. "\n"; |
| 200 end | 200 end |
| 201 | 201 |
| 202 function after_bosh_wait(now, request, session) | 202 function after_bosh_wait(now, request, session) -- luacheck: ignore 212 |
| 203 if request.conn then | 203 if request.conn then |
| 204 session.send(""); | 204 session.send(""); |
| 205 end | 205 end |
| 206 end | 206 end |
| 207 | 207 |
| 399 end | 399 end |
| 400 end | 400 end |
| 401 | 401 |
| 402 local function handleerr(err) log("error", "Traceback[bosh]: %s", traceback(tostring(err), 2)); end | 402 local function handleerr(err) log("error", "Traceback[bosh]: %s", traceback(tostring(err), 2)); end |
| 403 | 403 |
| 404 function runner_callbacks:error(err) | 404 function runner_callbacks:error(err) -- luacheck: ignore 212/self |
| 405 return handleerr(err); | 405 return handleerr(err); |
| 406 end | 406 end |
| 407 | 407 |
| 408 function stream_callbacks.handlestanza(context, stanza) | 408 function stream_callbacks.handlestanza(context, stanza) |
| 409 if context.ignore then return; end | 409 if context.ignore then return; end |
