call run in goroutine

This commit is contained in:
blob42 2023-09-10 00:10:22 +02:00
parent c4986778c1
commit c572b534d5

View File

@ -155,10 +155,12 @@ func WatcherThread(w WatchRunner) {
ch := watcher.eventsChan ch := watcher.eventsChan
ch <- event ch <- event
} else { } else {
w.Run() go func(){
if stats, ok := w.(Stats); ok { w.Run()
stats.ResetStats() if stats, ok := w.(Stats); ok {
} stats.ResetStats()
}
}()
} }
//log.Warningf("event: %v | eventName: %v", event.Op, event.Name) //log.Warningf("event: %v | eventName: %v", event.Op, event.Name)