diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-31 17:38:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-31 17:38:46 +0200 |
commit | 7b14467d602d8998281214f16777c8306d69d46a (patch) | |
tree | 67721236fb1ff4088f99f96f54ab24ff436ec814 | |
parent | 15f20672973752454f3475b0ba04cf1e8381bdf6 (diff) | |
download | prosody-7b14467d602d8998281214f16777c8306d69d46a.tar.gz prosody-7b14467d602d8998281214f16777c8306d69d46a.zip |
mod_storage_internal: Reorder methods
-rw-r--r-- | plugins/mod_storage_internal.lua | 16 |
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); |