Software /
code /
prosody
Comparison
net/server_epoll.lua @ 10546:944863f878b9
net.server_epoll: Remove an unused variable [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 21:51:52 +0100 (2019-12-23) |
parent | 10492:8e1d9bba9244 |
child | 10571:cfeb0077c9e9 |
comparison
equal
deleted
inserted
replaced
10545:2fbcdf6da331 | 10546:944863f878b9 |
---|---|
112 if peek > elapsed then | 112 if peek > elapsed then |
113 next_delay = peek - elapsed; | 113 next_delay = peek - elapsed; |
114 break; | 114 break; |
115 end | 115 end |
116 | 116 |
117 local _, timer, id = timers:pop(); | 117 local _, timer = timers:pop(); |
118 local ok, ret = pcall(timer[2], now); | 118 local ok, ret = pcall(timer[2], now); |
119 if ok and type(ret) == "number" then | 119 if ok and type(ret) == "number" then |
120 local next_time = elapsed+ret; | 120 local next_time = elapsed+ret; |
121 timer[1] = next_time; | 121 timer[1] = next_time; |
122 timers:insert(timer, next_time); | 122 timers:insert(timer, next_time); |