Skip to content

Commit

Permalink
rest watchers list to an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek-narsinghani committed Dec 4, 2023
1 parent b577fa8 commit 65ec25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@ func (f *File) Unwatch() error {
return err
}
}
// rest watchers list to an empty list
f.watchers = []*fsnotify.Watcher{}
return nil
}

0 comments on commit 65ec25c

Please sign in to comment.