A self-hosted dashboard that puts all your feeds in one place
Go aggregatordashboarddockerfeed-readergohomelabhomepagemonitoringredditrssrss-readerself-hostedstartpageyoutube
Even more config watcher fixes
Svilen Markovffe053ffc593
diff --git a/internal/glance/config.go b/internal/glance/config.goindex 59f5042..0f6b259 100644--- a/internal/glance/config.go+++ b/internal/glance/config.go@@ -172,11 +172,6 @@ func configFilesWatcher(return nil, fmt.Errorf("creating watcher: %w", err)}- if err = watcher.Add(mainFilePath); err != nil {- watcher.Close()- return nil, fmt.Errorf("adding main file to watcher: %w", err)- }-updateWatchedFiles := func(previousWatched map[string]struct{}, newWatched map[string]struct{}) {for filePath := range previousWatched {if _, ok := newWatched[filePath]; !ok {@@ -208,12 +203,13 @@ func configFilesWatcher(return}+ // TODO: refactor, flaky+ currentIncludes[mainFileAbsPath] = struct{}{}+mu.Lock()defer mu.Unlock()if !maps.Equal(currentIncludes, lastIncludes) {- // TODO: refactor, flaky- currentIncludes[mainFileAbsPath] = struct{}{}updateWatchedFiles(lastIncludes, currentIncludes)lastIncludes = currentIncludes}