Comparison

core/storagemanager.lua @ 8717:9ddd0fbbe53a

core: Use prosody.hosts instead of _G.hosts for consistency
author Kim Alvefur <zash@zash.se>
date Thu, 29 Mar 2018 16:58:06 +0200
parent 8691:564e2c63e0d4
child 10679:b50b1eae711c
comparison
equal deleted inserted replaced
8716:2f3b08ad9b8a 8717:9ddd0fbbe53a
5 5
6 local config = require "core.configmanager"; 6 local config = require "core.configmanager";
7 local datamanager = require "util.datamanager"; 7 local datamanager = require "util.datamanager";
8 local modulemanager = require "core.modulemanager"; 8 local modulemanager = require "core.modulemanager";
9 local multitable = require "util.multitable"; 9 local multitable = require "util.multitable";
10 local hosts = hosts;
11 local log = require "util.logger".init("storagemanager"); 10 local log = require "util.logger".init("storagemanager");
12 local async = require "util.async"; 11 local async = require "util.async";
13 local debug = debug; 12 local debug = debug;
14 13
15 local prosody = prosody; 14 local prosody = prosody;
15 local hosts = prosody.hosts;
16 16
17 local _ENV = nil; 17 local _ENV = nil;
18 -- luacheck: std none 18 -- luacheck: std none
19 19
20 local olddm = {}; -- maintain old datamanager, for backwards compatibility 20 local olddm = {}; -- maintain old datamanager, for backwards compatibility