Merge pull request #113037 from pacoxu/fsnotify-v1.6.0

update fsnotify to v1.6.0
This commit is contained in:
Kubernetes Prow Robot
2022-10-13 23:00:57 -07:00
committed by GitHub
190 changed files with 9206 additions and 3556 deletions

View File

@@ -257,10 +257,7 @@ func (o *Options) initWatcher() error {
}
func (o *Options) eventHandler(ent fsnotify.Event) {
eventOpIs := func(Op fsnotify.Op) bool {
return ent.Op&Op == Op
}
if eventOpIs(fsnotify.Write) || eventOpIs(fsnotify.Rename) {
if ent.Has(fsnotify.Write) || ent.Has(fsnotify.Rename) {
// error out when ConfigFile is updated
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
return