Changeset

11198:c4c06fbb7d87

util.cache: Add __name to metatable
author Matthew Wild <mwild1@gmail.com>
date Fri, 30 Oct 2020 14:05:07 +0000
parents 11197:50f182931bdd
children 11200:bf8f2da84007
files util/cache.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/cache.lua	Fri Oct 30 14:04:40 2020 +0000
+++ b/util/cache.lua	Fri Oct 30 14:05:07 2020 +0000
@@ -28,7 +28,7 @@
 end
 
 local cache_methods = {};
-local cache_mt = { __index = cache_methods };
+local cache_mt = { __name = "cache", __index = cache_methods };
 
 function cache_methods:set(k, v)
 	local m = self._data[k];