mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -845,6 +845,10 @@ func (c *commandeer) newWatcher(pollIntervalStr string, dirList ...string) (*wat
|
|||||||
c.logger.Printf("Use watcher with poll interval %v", pollInterval)
|
c.logger.Printf("Use watcher with poll interval %v", pollInterval)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pollInterval == 0 {
|
||||||
|
pollInterval = 500 * time.Millisecond
|
||||||
|
}
|
||||||
|
|
||||||
watcher, err := watcher.New(500*time.Millisecond, pollInterval, poll)
|
watcher, err := watcher.New(500*time.Millisecond, pollInterval, poll)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user