Software /
code /
prosody
Changeset
11196:f243836c449a
util.dbuffer: Add __name to metatable
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 30 Oct 2020 13:53:39 +0000 |
parents | 11195:c4cb536b67b5 |
children | 11197:50f182931bdd |
files | util/dbuffer.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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