diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-12 08:02:11 -0600 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-01-12 09:02:11 -0500 |
commit | 7e5ce976681e99be6b26d428935ba1106d530efa (patch) | |
tree | e050da49c943bf77f57b03eceb0b650114c7f1b6 /cmd/platform/server.go | |
parent | 3d3a234fca1d2ee43f5c4fc8961d44fde2512c82 (diff) | |
download | chat-7e5ce976681e99be6b26d428935ba1106d530efa.tar.gz chat-7e5ce976681e99be6b26d428935ba1106d530efa.tar.bz2 chat-7e5ce976681e99be6b26d428935ba1106d530efa.zip |
Remove global cfg vars (#8099)
* remove global cfg vars
* enterprise update
Diffstat (limited to 'cmd/platform/server.go')
-rw-r--r-- | cmd/platform/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go index cdf12cf71..e36abdaf9 100644 --- a/cmd/platform/server.go +++ b/cmd/platform/server.go @@ -75,7 +75,7 @@ func runServer(configFileLocation string, disableConfigWatch bool) { } a.InitPlugins(*a.Config().PluginSettings.Directory, *a.Config().PluginSettings.ClientDirectory, nil) - utils.AddConfigListener(func(prevCfg, cfg *model.Config) { + a.AddConfigListener(func(prevCfg, cfg *model.Config) { if *cfg.PluginSettings.Enable { a.InitPlugins(*cfg.PluginSettings.Directory, *a.Config().PluginSettings.ClientDirectory, nil) } else { |