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 | f80e643a0e903c51bec88a6462e60aa96da11506 (patch) | |
tree | 3822ffe1c0d3ab2c2b5357cbc32304d75b55779a /util | |
parent | 7312a610d4a9c1ca879feb7d271b98d33541ca3a (diff) | |
download | prosody-f80e643a0e903c51bec88a6462e60aa96da11506.tar.gz prosody-f80e643a0e903c51bec88a6462e60aa96da11506.zip |
util.dbuffer: Add __name to metatable
Diffstat (limited to 'util')
-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 |