Software /
code /
prosody
Comparison
net/resolvers/manual.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Nov 2020 22:31:25 +0100 |
parent | 9691:e11e076f0eb8 |
child | 12589:39ae08180c81 |
comparison
equal
deleted
inserted
replaced
11199:6c7c50a4de32 | 11200:bf8f2da84007 |
---|---|
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 |