We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dcaec4 commit 6c711a0Copy full SHA for 6c711a0
libcalico-go/lib/epstatusfile/status_file_watcher.go
@@ -164,10 +164,10 @@ func (w *FileWatcher) runWatcher() {
164
log.WithError(err).Info("Error initializing fsnotify. Falling back to polling.")
165
}
166
167
+ w.scanDirectory()
168
if w.fsWatcher != nil {
169
// Get current state of the directory and emit initial events.
170
w.fsnotifyActive = true
- w.scanDirectory()
171
// Run fsnotify watcher loop if possible.
172
err := w.runFsnotifyWatcher(w.fsWatcher)
173
w.fsnotifyActive = false
0 commit comments