Skip to content
Permalink
Browse files

Early return after sending to errCh in Options#eventHandler

  • Loading branch information...
yutedz committed Aug 30, 2019
1 parent 1ade4ce commit f1b314bf5a678e061fa748bc8c9497f40fad0784
Showing with 1 addition and 0 deletions.
  1. +1 −0 cmd/kube-proxy/app/server.go
@@ -252,6 +252,7 @@ func (o *Options) eventHandler(ent fsnotify.Event) {
if eventOpIs(fsnotify.Write) || eventOpIs(fsnotify.Rename) {
// error out when ConfigFile is updated
o.errCh <- fmt.Errorf("content of the proxy server's configuration file was updated")
return
}
o.errCh <- nil
}

0 comments on commit f1b314b

Please sign in to comment.
You can’t perform that action at this time.