Software / code / prosody
Comparison
net/resolvers/manual.lua @ 10434:8f709577fe8e
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 23 Nov 2019 23:12:01 +0100 |
| parent | 9691:e11e076f0eb8 |
| child | 12589:39ae08180c81 |
comparison
equal
deleted
inserted
replaced
| 10433:7777f25d5266 | 10434:8f709577fe8e |
|---|---|
| 1 local methods = {}; | 1 local methods = {}; |
| 2 local resolver_mt = { __index = methods }; | 2 local resolver_mt = { __index = methods }; |
| 3 local unpack = table.unpack or unpack; -- luacheck: ignore 113 | |
| 3 | 4 |
| 4 -- Find the next target to connect to, and | 5 -- Find the next target to connect to, and |
| 5 -- pass it to cb() | 6 -- pass it to cb() |
| 6 function methods:next(cb) | 7 function methods:next(cb) |
| 7 if #self.targets == 0 then | 8 if #self.targets == 0 then |