Changeset

1982:bb0b2eae5563

mod_storage_lmdb: Be consistent with argument name
author Kim Alvefur <zash@zash.se>
date Sat, 19 Dec 2015 00:25:30 +0100
parents 1981:1f815f57fa57
children 1983:f7fc5088b340
files mod_storage_lmdb/mod_storage_lmdb.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_lmdb/mod_storage_lmdb.lua	Fri Dec 18 22:00:00 2015 +0100
+++ b/mod_storage_lmdb/mod_storage_lmdb.lua	Sat Dec 19 00:25:30 2015 +0100
@@ -59,18 +59,18 @@
 local keyval_mt = { __index = keyval, flags = lmdb.MDB_CREATE };
 drivers.keyval = keyval_mt;
 
-function keyval:set(user, value)
+function keyval:set(key, value)
 	if type(value) == "table" and next(value) == nil then
 		value = nil;
 	end
 	if value ~= nil then
 		value = serialize(value);
 	end
-	return transaction(self.env, keyvalue_set, self.db, user, value);
+	return transaction(self.env, keyvalue_set, self.db, key, value);
 end
 
-function keyval:get(user)
-	local ok, data = transaction(self.env, keyvalue_get, self.db, user);
+function keyval:get(key)
+	local ok, data = transaction(self.env, keyvalue_get, self.db, key);
 	if not ok then return ok, data; end
 	return deserialize(data);
 end