Software /
code /
prosody
Changeset
8019:925098aad268
mod_storage_internal: Reorder methods
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 31 Mar 2017 17:38:46 +0200 |
parents | 8018:9545d0a9401f |
children | 8020:342ce07836de |
files | plugins/mod_storage_internal.lua |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Fri Mar 31 17:34:33 2017 +0200 +++ b/plugins/mod_storage_internal.lua Fri Mar 31 17:38:46 2017 +0200 @@ -12,6 +12,14 @@ 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 @@ 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);