mod_storage_lmdb: Be consistent with argument name

Sat, 19 Dec 2015 00:25:30 +0100

author
Kim Alvefur <zash@zash.se>
date
Sat, 19 Dec 2015 00:25:30 +0100
changeset 1982
bb0b2eae5563
parent 1981
1f815f57fa57
child 1983
f7fc5088b340

mod_storage_lmdb: Be consistent with argument name

mod_storage_lmdb/mod_storage_lmdb.lua file | annotate | diff | comparison | revisions
--- 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

mercurial