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 := 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user