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 <- event
} else {
w.Run()
if stats, ok := w.(Stats); ok {
stats.ResetStats()
}
go func(){
w.Run()
if stats, ok := w.(Stats); ok {
stats.ResetStats()
}
}()
}
//log.Warningf("event: %v | eventName: %v", event.Op, event.Name)