aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-10-30 13:53:39 +0000
committerMatthew Wild <mwild1@gmail.com>2020-10-30 13:53:39 +0000
commitf80e643a0e903c51bec88a6462e60aa96da11506 (patch)
tree3822ffe1c0d3ab2c2b5357cbc32304d75b55779a
parent7312a610d4a9c1ca879feb7d271b98d33541ca3a (diff)
downloadprosody-f80e643a0e903c51bec88a6462e60aa96da11506.tar.gz
prosody-f80e643a0e903c51bec88a6462e60aa96da11506.zip
util.dbuffer: Add __name to metatable
-rw-r--r--util/dbuffer.lua2
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