diff 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
parents 564e2c63e0d4
children b50b1eae711c
line wrap: on
line diff
--- a/core/storagemanager.lua	Thu Mar 29 16:42:24 2018 +0200
+++ b/core/storagemanager.lua	Thu Mar 29 16:58:06 2018 +0200
@@ -7,12 +7,12 @@
 local datamanager = require "util.datamanager";
 local modulemanager = require "core.modulemanager";
 local multitable = require "util.multitable";
-local hosts = hosts;
 local log = require "util.logger".init("storagemanager");
 local async = require "util.async";
 local debug = debug;
 
 local prosody = prosody;
+local hosts = prosody.hosts;
 
 local _ENV = nil;
 -- luacheck: std none