diff options
author | Valery Piashchynski <[email protected]> | 2020-02-23 15:15:02 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-23 15:15:02 +0300 |
commit | 2b70159897b52e99f4040d1fe6571622c1e7459a (patch) | |
tree | 981e63f1cbb89e222ef6568fadb0afd37c548f29 /service | |
parent | d4d83ac0043cb15d19ae4fa49095434b1c594451 (diff) |
Add FW to removes and deletes
Diffstat (limited to 'service')
-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 } |