diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-11 15:23:41 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2018-01-11 13:23:41 -0800 |
commit | 1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954 (patch) | |
tree | 5518bf9683e2fcbcb6b4e0acd3643a3146574ec4 /app/options.go | |
parent | 6990d052d5e95295e729aae28a0d30bfdcb98573 (diff) | |
download | chat-1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954.tar.gz chat-1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954.tar.bz2 chat-1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954.zip |
Remove global config watcher (#8080)
* remove global config watcher
* keep config watcher disabled for tests
* compile fix
* fix resource leak
Diffstat (limited to 'app/options.go')
-rw-r--r-- | app/options.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/options.go b/app/options.go index 9b40806f3..464566024 100644 --- a/app/options.go +++ b/app/options.go @@ -35,3 +35,7 @@ func ConfigFile(file string) Option { a.configFile = file } } + +func DisableConfigWatch(a *App) { + a.disableConfigWatch = true +} |