From b1d929678998a3b6e2e31b234bbac244b2379454 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 31 Mar 2017 17:38:46 +0200 Subject: mod_storage_internal: Reorder methods --- plugins/mod_storage_internal.lua | 16 ++++++++-------- 1 file 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); -- cgit v1.2.3