aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-31 17:38:46 +0200
committerKim Alvefur <zash@zash.se>2017-03-31 17:38:46 +0200
commitb1d929678998a3b6e2e31b234bbac244b2379454 (patch)
tree67721236fb1ff4088f99f96f54ab24ff436ec814
parent0ca328a00c3ab900d996c33755ef73ca869d153d (diff)
downloadprosody-b1d929678998a3b6e2e31b234bbac244b2379454.tar.gz
prosody-b1d929678998a3b6e2e31b234bbac244b2379454.zip
mod_storage_internal: Reorder methods
-rw-r--r--plugins/mod_storage_internal.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua
index dd8cf61f..557a329e 100644
--- a/plugins/mod_storage_internal.lua
+++ b/plugins/mod_storage_internal.lua
@@ -12,6 +12,14 @@ function driver:open(store, typ)
return setmetatable({ store = store, type = typ }, mt);
end
+function driver:stores(username)
+ return datamanager.stores(username, host);
+end
+
+function driver:purge(user)
+ return datamanager.purge(user, host);
+end
+
local keyval = { };
driver.keyval = { __index = keyval };
@@ -23,16 +31,8 @@ function keyval:set(user, data)
return datamanager.store(user, host, self.store, data);
end
-function driver:stores(username)
- return datamanager.stores(username, host);
-end
-
function keyval:users()
return datamanager.users(host, self.store, self.type);
end
-function driver:purge(user)
- return datamanager.purge(user, host);
-end
-
module:provides("storage", driver);