diff options
Diffstat (limited to 'service/reload/watcher.go')
-rw-r--r-- | service/reload/watcher.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/service/reload/watcher.go b/service/reload/watcher.go index 3596ae73..d5211d19 100644 --- a/service/reload/watcher.go +++ b/service/reload/watcher.go @@ -372,8 +372,11 @@ func (w *Watcher) pollEvents(serviceName string, files map[string]os.FileInfo) { service: serviceName, } - delete(removes, path1) - delete(creates, path2) + // remove initial path + delete(w.watcherConfigs[serviceName].files, path1) + // update with new + w.watcherConfigs[serviceName].files[path2] = info2 + w.Event <- e } |