Software /
code /
prosody
Comparison
util/throttle.lua @ 4466:28e0bf9cf0f5
util.throttle: Import setmetatable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 13 Jan 2012 23:30:00 +0000 |
parent | 4362:851885cb332d |
child | 4467:fc8a22936b3c |
comparison
equal
deleted
inserted
replaced
4465:41c4252526bd | 4466:28e0bf9cf0f5 |
---|---|
1 | 1 |
2 local gettime = require "socket".gettime; | 2 local gettime = require "socket".gettime; |
3 local setmetatable = setmetatable; | |
3 | 4 |
4 module "throttle" | 5 module "throttle" |
5 | 6 |
6 local throttle = {}; | 7 local throttle = {}; |
7 local throttle_mt = { __index = throttle }; | 8 local throttle_mt = { __index = throttle }; |