mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-24 18:11:19 +01:00
chore: add ROOT_DIR environment variable, refactor
This commit is contained in:
@@ -19,7 +19,7 @@ func NewConfigFileWatcher(filename string) Watcher {
|
||||
|
||||
if configDirWatcher == nil {
|
||||
t := task.RootTask("config_dir_watcher", false)
|
||||
configDirWatcher = NewDirectoryWatcher(t, common.ConfigBasePath)
|
||||
configDirWatcher = NewDirectoryWatcher(t, common.ConfigDir)
|
||||
}
|
||||
return configDirWatcher.Add(filename)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user