Mercurial > prosody-modules
comparison mod_storage_memory/mod_storage_memory.lua @ 2660:796ace2c8f9d
mod_storage_memory: Inclued 'with' in search [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 30 Mar 2017 23:46:13 +0200 |
| parents | 6c22cb7b0e66 |
| children | 1d734acabd46 |
comparison
equal
deleted
inserted
replaced
| 2659:6c22cb7b0e66 | 2660:796ace2c8f9d |
|---|---|
| 97 start = a[query.after]; | 97 start = a[query.after]; |
| 98 end | 98 end |
| 99 limit = query.limit; | 99 limit = query.limit; |
| 100 qstart = query.start or qstart; | 100 qstart = query.start or qstart; |
| 101 qend = query["end"] or qend; | 101 qend = query["end"] or qend; |
| 102 qwith = query.with; | |
| 102 end | 103 end |
| 103 if not start then return nil, "invalid-key"; end | 104 if not start then return nil, "invalid-key"; end |
| 104 local iter = coroutine.wrap(archive_iter); | 105 local iter = coroutine.wrap(archive_iter); |
| 105 iter(a, start, stop, step, limit, qstart, qend, qwith); | 106 iter(a, start, stop, step, limit, qstart, qend, qwith); |
| 106 return iter; | 107 return iter; |
