Software /
code /
prosody
Comparison
net/resolvers/manual.lua @ 11120:b2331f3dfeea
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 09:50:33 +0100 |
parent | 9691:e11e076f0eb8 |
child | 12589:39ae08180c81 |
comparison
equal
deleted
inserted
replaced
11119:68df52bf08d5 | 11120:b2331f3dfeea |
---|---|
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 |