Software /
code /
prosody
Diff
util/dbuffer.lua @ 11196:f243836c449a
util.dbuffer: Add __name to metatable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 30 Oct 2020 13:53:39 +0000 |
parent | 11190:88ce53df44a9 |
child | 11636:11e0a0a08da3 |
line wrap: on
line diff
--- a/util/dbuffer.lua Fri Oct 30 13:53:24 2020 +0000 +++ b/util/dbuffer.lua Fri Oct 30 13:53:39 2020 +0000 @@ -2,7 +2,7 @@ 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