+Problems

This commit is contained in:
Simon Martens
2024-11-15 14:03:00 +01:00
parent 20a660077f
commit a015b0fe6b
2 changed files with 1 additions and 2 deletions

View File

@@ -6,7 +6,6 @@ import (
"log" "log"
"path/filepath" "path/filepath"
"sync" "sync"
"time"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
) )
@@ -99,7 +98,6 @@ func (fw *FileWatcher) Watch() error {
} }
log.Println("event:", event) log.Println("event:", event)
if !event.Has(fsnotify.Chmod) { if !event.Has(fsnotify.Chmod) {
time.Sleep(50 * time.Millisecond)
fw.mu.Lock() fw.mu.Lock()
for _, wf := range fw.wf { for _, wf := range fw.wf {
wf(event.Name) wf(event.Name)

View File

@@ -83,3 +83,4 @@
- Horizontale Jahresnavigation durch vertikale ersetzen, so wie in der Einzelansicht - Horizontale Jahresnavigation durch vertikale ersetzen, so wie in der Einzelansicht
- Was ist "Link auf seite teilen"? - Was ist "Link auf seite teilen"?
- Bevorzugtes Datumsformat - Bevorzugtes Datumsformat
- Zitierweise, Logo