call run in goroutine
This commit is contained in:
parent
c4986778c1
commit
c572b534d5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user