Software /
code /
prosody
Changeset
8993:bd9b67f742c9
moduleapi: Lazy-load configmanager on demand simplify dependency graph
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 07 Jul 2018 21:55:00 +0200 |
parents | 8992:972b6f793ff9 |
children | 8994:f17e768c1a99 |
files | core/moduleapi.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/moduleapi.lua Sat Jul 07 21:00:59 2018 +0200 +++ b/core/moduleapi.lua Sat Jul 07 21:55:00 2018 +0200 @@ -6,7 +6,6 @@ -- COPYING file in the source package for more information. -- -local config = require "core.configmanager"; local array = require "util.array"; local set = require "util.set"; local it = require "util.iterators"; @@ -196,6 +195,7 @@ end function api:get_option(name, default_value) + local config = require "core.configmanager"; local value = config.get(self.host, name); if value == nil then value = default_value;