diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-10-30 13:53:39 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-10-30 13:53:39 +0000 |
commit | f29013fb0c1b161d7f7ddcb335ef3191ce32bf5d (patch) | |
tree | 3822ffe1c0d3ab2c2b5357cbc32304d75b55779a /util/dbuffer.lua | |
parent | 55359a2932225eb4a9394e457dd8c9944ae99e89 (diff) | |
download | prosody-f29013fb0c1b161d7f7ddcb335ef3191ce32bf5d.tar.gz prosody-f29013fb0c1b161d7f7ddcb335ef3191ce32bf5d.zip |
util.dbuffer: Add __name to metatable
Diffstat (limited to 'util/dbuffer.lua')
-rw-r--r-- | util/dbuffer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dbuffer.lua b/util/dbuffer.lua index 640c1449..54e12266 100644 --- a/util/dbuffer.lua +++ b/util/dbuffer.lua @@ -2,7 +2,7 @@ local queue = require "util.queue"; local s_byte, s_sub = string.byte, string.sub; local dbuffer_methods = {}; -local dynamic_buffer_mt = { __index = dbuffer_methods }; +local dynamic_buffer_mt = { __name = "dbuffer", __index = dbuffer_methods }; function dbuffer_methods:write(data) if self.max_size and #data + self._length > self.max_size then |