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 | b1d929678998a3b6e2e31b234bbac244b2379454 (patch) | |
tree | 67721236fb1ff4088f99f96f54ab24ff436ec814 | |
parent | 0ca328a00c3ab900d996c33755ef73ca869d153d (diff) | |
download | prosody-b1d929678998a3b6e2e31b234bbac244b2379454.tar.gz prosody-b1d929678998a3b6e2e31b234bbac244b2379454.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); |