Add clarifying comment

This commit is contained in:
Sergio Rubio 2025-02-17 19:17:49 +01:00
parent f7f333ad52
commit 76a80ff034

View file

@ -295,6 +295,9 @@ func configFilesWatcher(
}
time.Sleep(100 * time.Millisecond)
}
// fsnotify removes the file from the watch list on rename events,
// add it back.
// See https://github.com/fsnotify/fsnotify/issues/214
err := watcher.Add(mainFileAbsPath)
if err != nil {
onErr(fmt.Errorf("watching file:", err))